Loading...
 
Skip to main content

System Workbench for STM32


Hello world stm32f0xx Cannot even toggle GPIOS

My sympathies.
I struggle with exactly the same thing. I am "just" trying to flash an LED every second.

What I have noticed though, is this SMT32CubeMX generates code that doesn't run at all from the get go.

It doesn't appear from your code that you are using CMSIS threads or FreeRTOS threads.

Check in the generated code, there is a "default task" that gets created. Your "loop" needs to go in there.

But, then you will get stuck where I am, now. All the interupt priorities and NULL pointers and other things (my LED is STILL not flashing)

Hopefully in near future I will have an "example" project with one of those cheap STM32F108CT8 boards that "just" flashes it's LED.

(maybe I am too spoilt with Arduino, where you flash LEDs out of the box)