STM32-HDK-dat
download
NRST - DTR#, BOOT0 - RST#

power supply and download via USB

🔧 Boot Configuration
To enter system bootloader mode (UART download mode), set the BOOT pins as follows:
| BOOT0 | BOOT1 | Mode |
|---|---|---|
| 1 | 0 | System Memory (USART1 boot) |
| 0 | x | Flash memory (normal startup) |
Set:
-
BOOT0 = 1(connect to 3.3V) -
BOOT1 = 0(connect to GND; often fixed on board)
🔌 Flashing Procedure
- Set BOOT0 to HIGH (3.3V), BOOT1 to LOW (GND)
- Connect USB-TTL:
- TX → PA10
- RX → PA9
- GND → GND
- Press the RESET button on the STM32 board
- Open STM32CubeProgrammer or run
stm32flash - Flash firmware over UART1
stm32flash -w firmware.bin -v -g 0x0 /dev/ttyUSB0