Unable to download program to STM32F4 Discovery Board using OpenOCD and simulink
이전 댓글 표시
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월 19일
I have this problem too. Unfortunately, I could not find solution.
Felix Vilchez
2015년 5월 22일
me too, my solution, change .hex file with st-link utility
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개)
카테고리
도움말 센터 및 File Exchange에서 STMicroelectronics Discovery Boards에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!