Unable to download program to STM32F4 Discovery Board using OpenOCD and simulink
2 次查看(过去 30 天)
显示 更早的评论
Hello All,
I am trying to run example "Getting Started with STMicroelectronics STM32F4-Discovery Support Package"
in MATLAB Simulink. I could build the program and generate .hex and .bin file. But I am unable to download and run that on the hardware. While deploying program to hardware, I got following error -
-------------------------------------------------------------------------------------------
"### Done invoking postbuild tool."
"### Invoking postbuild tool "Download" ..."
"C:\MATLAB\SupportPackages\R2014b\stmicroelectronicsstm32f4discovery\toolbox\target\supportpackages\stm32f4discovery\@slCustomizer\../openOCD_client.bat" "C:\MATLAB\SupportPackages\R2014b\openocd-0.6.1/bin/openocd-0.6.1.exe" "-f board/stm32f4discovery.cfg" ../stm32f4discovery_led4.hex
### Launching openOCD server C:\MATLAB\SupportPackages\R2014b\openocd-0.6.1/bin/openocd-0.6.1.exe -f board/stm32f4discovery.cfg: readline() on closed filehandle $fh at C:\MATLAB\SupportPackages\R2014b\stmicroelectronicsstm32f4discovery\toolbox\target\supportpackages\stm32f4discovery\@slCustomizer\../openOCD_client.bat line 57.
Use of uninitialized value in pattern match (m//) at C:\MATLAB\SupportPackages\R2014b\stmicroelectronicsstm32f4discovery\toolbox\target\supportpackages\stm32f4discovery\@slCustomizer\../openOCD_client.bat line 86.
Use of uninitialized value in length at C:\MATLAB\SupportPackages\R2014b\stmicroelectronicsstm32f4discovery\toolbox\target\supportpackages\stm32f4discovery\@slCustomizer\../openOCD_client.bat line 102.
Cannot connect to openOCD on localhost at C:\MATLAB\SupportPackages\R2014b\stmicroelectronicsstm32f4discovery\toolbox\target\supportpackages\stm32f4discovery\@slCustomizer\../openOCD_client.bat line 128.
Success
### Open telnet port for communction with openOCD server.
Following error captured during communcation with OpenOCD server:
Net::Telnet=GLOB(0x33a9824)->errmsg()"### Done invoking postbuild tool."
### Successful completion of build procedure for model: stm32f4discovery_led4
-------------------------------------------------------------------------------------------
Can you suggest a solution?
Thanks & Regards,
Abhijeet
3 个评论
Viacheslav Klimentyev
2015-5-26
Problem is solved: http://www.mathworks.com/matlabcentral/fileexchange/43093-embedded-coder-support-package-for-stmicroelectronics-stm32f4-discovery-board
See comments about OpenOCD.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!