STM32 Blue pill STM32F103C8T6, black pill STM32F411CEU6, STM32F401RCT6 program using arduino ide

 STM32 Blue pill STM32F103C8T6, black pill STM32F411CEU6, STM32F401RCT6 program using arduino ide

Using USB to TTL module like Ch340 or FTDI module-
Add board from Board Manager search STM32 and install.

Download STM32 Cube Programmer without this code not possible to upload via Arduino IDE

2. Connect Serial UART programmer Ch340 or FTDI module to STM32 
and 
Set Boot Jumper to 1

USB-to-TTL PinBlue Pill PinDescription
5V or 3.3V5V or 3.3VPower Supply (Set adapter to 3.3V or 5V accordingly)
GNDG / GNDCommon Ground
TXPA10 (RX1)TX pin of adapter connects to RX pin of Blue Pill
RXPA9 (TX1)RX pin of adapter connects to TX pin of Blue Pill
3. Select Board (for STM32F103C8T6 is STM32F1) and Board Part number (for STM32F103C8T6 is F103C8) and COM port, Upload Method is STM32 Cube Programmer (Serial) then Upload.

4. Set Boot Jumper to 0 again and Reset.

5. Serial Monitor as well.











Using ST-Link V2 Programmer USB-

Add board from Board Manager search STM32 and install.

Download STM32 Cube Programmer without this code not possible to upload via Arduino IDE

ST-Link V2 PinBlue Pill PinDescription
3.3V3.3VPower supply (Do not connect to 5V)
SWCLKCLK (or PA14)Serial Wire Clock
SWDIODIO (or PA13)Serial Wire Data Input/Output
GNDG / GNDCommon Ground
2. Select Board (for STM32F411CEU6 is STM32F4) and Board Part number (for STM32F411CEU6 is F411CE) and COM port, Upload Method is STM32 Cube Programmer (SWD) then Upload.






Comments