Black STM32F407ZG Board and LEDs
Posted: Fri Apr 02, 2021 5:28 pm
I use this board:
STM32F407ZGT6 STM32 System ARM Core Board STM32F407 Development Board F407 Cortex-M4 Single-Chip Learning Board
https://www.aliexpress.com/item/4001089 ... 4c4dICMrQ7
Schematics
https://github.com/mcauser/BLACK_F407ZG ... matics.pdf

Using VS Code and PlatformIO this seems to be the right board:
https://docs.platformio.org/en/v5.1.1/b ... 407zg.html
Flashing with a ST-Link V2 works without problems, but the typical Blinky program doesn't work as expected.
Instead of LED_D1 the LED_D2 blinks and vice versa. I don't understand what's wrong?! Any idea?
The LEDs are LED D1 (PF9) active low and LED D2 (PF10) active low.
LED_D1 and PF9 are connected, checked with impedance measurement.
main.cpp
STM32F407ZGT6 STM32 System ARM Core Board STM32F407 Development Board F407 Cortex-M4 Single-Chip Learning Board
https://www.aliexpress.com/item/4001089 ... 4c4dICMrQ7
Schematics
https://github.com/mcauser/BLACK_F407ZG ... matics.pdf

Using VS Code and PlatformIO this seems to be the right board:
https://docs.platformio.org/en/v5.1.1/b ... 407zg.html
Flashing with a ST-Link V2 works without problems, but the typical Blinky program doesn't work as expected.
Instead of LED_D1 the LED_D2 blinks and vice versa. I don't understand what's wrong?! Any idea?
The LEDs are LED D1 (PF9) active low and LED D2 (PF10) active low.
LED_D1 and PF9 are connected, checked with impedance measurement.
main.cpp
Code: Select all
#include <Arduino.h>
void setup()
{
// initialize LED digital pin as an output.
pinMode(LED_D1, OUTPUT);
//pinMode(LED_D2, OUTPUT);
}
void loop()
{
// turn the LED off by making the voltage HIGH (active low)
digitalWrite(LED_D1, HIGH);
//digitalWrite(LED_D2, HIGH);
delay(3000);
// turn the LED on by making the voltage LOW (active low)
digitalWrite(LED_D1, LOW);
//digitalWrite(LED_D2, LOW);
delay(1000);
}