微處理器 - STMicroelectronics STM32F103 - 如何透過ST-LINK V2燒錄程式(OpenOCD)



連接如下四條線:


燒錄命令如下:

$ sudo openocd -f /usr/local/share/openocd/scripts/interface/stlink.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg -c "program main.bin reset exit 0x8000000"

完成