Hello,
Mathworks sent me a tutorial,
Part 1) is about how to solve the issue with OpenOcd Config,
Part 2 ) Use the StLink instead
I haven’t managed to use the ST-Link(Part2), which I would consider better because it may be better maintained, but I have managed to make a LED blink on my Nucleo144 STM32F429 Board using OpenOCD. Please make sure that you use a port and a Pin that is connected to an LED, on mine (Nucleo144 STM32F429 ZI) I configured the Block to GPIOB, Pin14.
Ok, what I did was follow the instructions from Mathworks, but the first attempt failed. My solution is a combination of Mathworks but patching all STM32F4 related files to ST-Link 2.1:
------------------------------------------------------------------------------------
(1) Go to the folder where your support packages are installed and go to the openocd-0.10.0 folder. For example, the default is; C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\openocd.instrset\GNU MCU Eclipse\OpenOCD\0.10.0-5-20171110-1117\scripts\board
(2) Open st_nucleo_f4.cfg , stm32f4discovery.cfg , stm32f429disc1.cfg , stm32f429discovery.cfg
(3) Change
[find interface/stlink-v2.cfg]
to
[find interface/stlink-v2-1.cfg]
(4) Save the files and restart MATLAB. Try the example again.
-------------------------------------------------------------------------------------
I’ll keep you updated, I’ll try to get the ST-Link as well.
Best Regards, Sebastian Wendel