Unable to download program to STM32F4 Discovery Board using OpenOCD and simulink

2 views (last 30 days)
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 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!