I use Matlab-R2014a with Hardware Support Packages for STM32F4 Discovery Board. I'm not able to download program to STM32F4 Discovery Board using OpenOCD and simulink. I got the following error-message:
### Launching openOCD server C:\MATLAB\SupportPackages\R2014a\openocd-0.6.1/bin/openocd-0.6.1.exe -f board/stm32f4discovery.cfg: Following error captured during invoking of openOCD server:
Open On-Chip Debugger 0.6.1 (2012-10-07-10:34) Licensed under GNU GPL v2 For bug reports, read <http://openocd.sourceforge.net/doc/doxygen/bugs.html> adapter speed: 1000 kHz srst_only separate srst_nogate srst_open_drain Info : clock speed 1000 kHz Error: open failed in procedure 'transport' in procedure 'init'
"### Done invoking postbuild tool." ### Successful completion of build procedure for model: stm32f4discovery_led4
I installed the driver for ST-Link and ST-Link V2. I can download the program to the board using ST-Link Ultility or Keil.
Could someone please help me? Thank you in advance!