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-
1. Add link in Arduino IDE Preferences- https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/refs/heads/main/package_stmicroelectronics_index.json
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 Pin | Blue Pill Pin | Description |
| 5V or 3.3V | 5V or 3.3V | Power Supply (Set adapter to 3.3V or 5V accordingly) |
| GND | G / GND | Common Ground |
| TX | PA10 (RX1) | TX pin of adapter connects to RX pin of Blue Pill |
| RX | PA9 (TX1) | RX pin of adapter connects to TX pin of Blue Pill |
4. Set Boot Jumper to 0 again and Reset.
5. Serial Monitor as well.
Using ST-Link V2 Programmer USB-
1. Add link in Arduino IDE Preferences- https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/refs/heads/main/package_stmicroelectronics_index.json
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 Pin | Blue Pill Pin | Description |
| 3.3V | 3.3V | Power supply (Do not connect to 5V) |
| SWCLK | CLK (or PA14) | Serial Wire Clock |
| SWDIO | DIO (or PA13) | Serial Wire Data Input/Output |
| GND | G / GND | Common Ground |
Comments
Post a Comment