Содержание

Flash STM32 Primer over UART1

Get STM32 primer.

STM32 Primer

FIXME Need write about device.

Rework

Primer

Step 1

You need TTL3.3v serial port. Example USB to UART Prolific PL-2303 chip.

Step 1

Step 2

Resolder R48 that would pull-down Boot1 processor pin.

Step 2

Step 3

R42 change with 10К resistor.

Connect Boot0 point to nRTS line of serial port or use jumper instead R49 to enter program mode after reset

Step 3

Step 4

Connect nDTR of serial port to Reset point via semi-key and/or connect button to Reset and GND points on primer board.

Semi-key

Step 4

Final

Final

STM32 Loader

Install python and pyserial library. On Debian type command

apt-get install python python-serial

Download flash loader stm32loader.py.gz

Get help:

./stm32loader.py --help

Erase, write and verify compiled binary:

./stm32loader.py -e -w -v example/main.bin

:!: Loader have bug: you must disconnect serial port after flashing and reset MCU.