Upload code in costum made board

Hello neginshiran,

First method:

If you have a serial-to-usb converter then connect it to the chip’s UART1 pins (GND to GND, Rx to Tx and Tx to Rx).

  • Pull down (connect to the ground) the chip’s BOOT0 pin.
  • Pull down and release the chip’s RESET pin.
  • Release the BOOT0 pin.
    Such sequence will bring the chip into the programming mode.
    Then you can use the STM32CubeProgrammer (available from STM for free) to flash the chip with your binary file.

Second method:

There is a SW (serial wire) interface available on the PA13 (SWDIO) and PA14 (SWCLK) pins you can connect an ST Link programmer to, for example like this:

https://www.ebay.com/itm/ST-Link-V2-Programming-Unit-mini-STM8-STM32-Emulator-Downloader-M89-1PC-Random/113851916666?hash=item1a821a617a:g:l2UAAOSwqS5bzYad

Then you can use the STM32CubeProgrammer or the STM32 ST-Link Utility (as for example here) to flash the chip with your binary file. The advantage of this method is that the ST-Link V2 programmer can be used also for debugging.

Best regards, Zoltan

2 Likes