MATLAB Answers

Unable to connect to stm32f4 board, simulink, embeder coder

6 views (last 30 days)
Mukhtar Maulimov
Mukhtar Maulimov on 9 Apr 2016
Answered: gökhan manav on 14 Jul 2018
Hi,
We are using STM32F407VG Card and we have a problem. We try to run the Simulink block diagram "Parametric Audio Equalizer for STM32F4-Discovery Board". Note that we have Matlab 2015b and Embedded Coder Support Package for STMicroelectronics STM32F4. We connected STM32F407VG to PC using FT232RL USB to TTL serial converter (RX to TX, TX to RX) An error is occurred at the end:
"
"### Successfully generated all binary outputs."
C:\mmm\stm32f4discovery_audio_equalizer_ert_rtw>exit /B 0
### Launching openOCD server "C:\MATLAB\SupportPackages\R2015b\openocd-0.8.0\bin\openocd-0.8.0.exe" -f board/stm32f4discovery.cfg:
Unable to launch the openOCD debugger to download the executable to target. Check the following:
1. Are the 'ST-Link/V2' drivers installed properly?
2. Did you connect the STM32F4-Discovery board to the host computer using a USB cable?
3. Re-connect the STM32F4-Discovery board to the host machine and check that the drivers are detected.
For more information, look in the logfile generated by openOCD: C:/mmm/stm32f4discovery_audio_equalizer_ert_rtw/mw_openocd_log.txt.
### Successful completion of build procedure for model: stm32f4discovery_audio_equalizer
"
We couldn't figure out that what we are doing wrong.
Also, in Configuration Parameters->Code generator->Interface->Data exchange-> Interface we dont have EXTERNAL MODE button. (The same problem http://www.mathworks.com/matlabcentral/answers/222461-unable-to-set-external-mode-on-for-stm32f4-discovery-in-simulink-2015a)

Answers (1)

gökhan manav
gökhan manav on 14 Jul 2018
I had the same problem. The solution was easy. If you use Windows 10 and laters version, windows doesn't permison to write in C:/ drive. So you can crete or move the project to another drive (like D). That is it.

Community Treasure Hunt

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

Start Hunting!

Translated by