Skip to content

Boards notes Blue Pill stm32f103

Fanda Vacek edited this page Mar 24, 2019 · 5 revisions

Blue Pill stm32f103

ST-Link

st-link-connect-to-blue-pill

Nuttx can be configured to provide serial port via device USB.

./tools/configure.sh stm32f103-minimum/usbnsh
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg

connect to openOCD

telnet localhost 4444

command openOCD via telnet to flash device

> program /home/fanda/proj/nx/nuttx/nuttx verify reset

unplug and plug USB

minicom -D /dev/ttyACM0

or

tio /dev/ttyACM0

press Enter 3 times