cancel
Showing results for 
Search instead for 
Did you mean: 

Transform F103 or st-link into automatic programmer for other devices... without PC

samuel23
Associate III

Hi,

I want to give to a F103 the faculty to program any other F103 in one touch on the blue button... with a known .hex program.

  • only the SWD link between them.

User Scenario:

  • The user plug a new F103 (SWDCLK+SWDIO+GND+3V3) to the 'loader' (without any PC!)
  • The user press que bluebutton of the loader (for example a Nucleo F103)
  • The target is automatically flashed
  • That's all!

I dit not find such functionnality (without PC into the loop).

Thanks ;)

1 REPLY 1
berendi
Principal

No idea, but you might consider using a raspberry pi instead.

https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi

It should work even with the $10 Pi Zero W. Only it has no button, so you have to mount one. Or more, for flashing different kinds of firmware, an SD card can hold a couple of images.

Mount the SD card readonly to prevent wearing it out.

https://medium.com/@andreas.schallwig/how-to-make-your-raspberry-pi-file-system-read-only-raspbian-stretch-80c0f7be7353