This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LED not toggling in bare-metal C

Hello there, i tried writing a program that blinks an LED, but for a reason it turns on and stays on, doesn't toggle. I'm using the Discovery board with STM32F407VG MCU.

And this is the code:

Note: I'm connecting pin PA5 with PD12(which is connected to the GREEN LED).

I took this code from a course, where the author uses STM32F411VET mcu, which is a disco board as well. And one strange thing, which he doesn't explain is: he says that "the led" is connected to PA5. I checked the datasheet of the board and don't see any LED connected to that pin.

And btw, he develops this from scratch, write his own structures and registers.

0