Arm Mbed OS support forum

Upload code in costum made board

Hi everyone,
I have my costum made board with stm32l496 and I dont have ST link port on it.
I would like to know how can I upload my code on it if it is possible.

thank you all!

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:

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

thank you so much for your help!