STM32 Blue Pill

These boards should be very handy for various machine control projects. My near term goal is to get up to speed on programming these in order to use the analog to digital ports for use on a Linux PC. So far, my best result has been using the ST-Link V2 adapter connected to the Pill's SWD port. I followed the procdure at this link: Programming an STM32F103XXX with a generic ST Link V2 programmer from Linux

I installed OpenOCD with Synaptic on my LinuxMint. The example openocd command didn't work for me, but after much Googling and guessing I got this: openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x_stlink.cfg .

In summary: I open two terminal sessions, invoke my openocd command in the first window (I don't use the script from the example), then 'telnet localhost 4444' in the second window. This brings up the OpenOCD command prompt. From here, I can use OpenOCD commands to control the Pill. I tried loading a bootloader so I could use the USB port for programming and maybe using the Arduino IDE. I am tending to just try using gcc to compile my source and use OpenOCD/ST-Link to load the .bin file.

I should be filling details and progress reports during the next few weeks.



Pages Created by Kirk Wallace
kwallace@wallacecompany.com

Copyright © 2017 WALLACE COMPANY
Rev. Date: 2019/03/10 04:08 UTC KW