Loading...
 
Skip to main content

System Workbench for STM32


Programming fails?

There is a LED on PD_2 and I've got it working in mbed.
I can get the onboard LED to blink by using an example from ST's downloaded CubeF4 files but any attempt to change to other pins and it programs but nothing happens.


ok.

Maybe you can try to program the hex files using STM32 ST-LINK Utility.

Ok I managed to solve it by putting
__HAL_RCC_GPIOD_CLK_ENABLE();
before the while loop.

I guess this means I didn't set it up correctly in CubeMX 😕