Disconnect one before plugging-in the other one.įor uploading the binary to the Blue Pill, respectively complete target erase, use either: make flash BLUE PILL SCHEMATIC CODE The Blue Pill has two LEDs, one for power and one driven by MCU, connected to port C, bit 13, as we can see in the schematic got from Schematic and documentationįor making the LED to blink we need to configure GPIO port C13 and add some delay. We see in the schematic that LED turns on when GPIO pin is ‘0’ logic and turns off when ‘1’. The real story is a bit longer, but I’ll tell you here the short version. To make a GPIO toggling in STM32, you need to work with two peripherals: RCC (reset and clock control) and GPIOx (general purpose input/output).
0 Comments
Leave a Reply. |