cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading firmware to STM32WLE5 via ST-LINK without access to boot pin

llee_2468
Visitor

I'm trying my hand at a LoRa project and settled on using the STM32WLE5JC chip on Seeed studio's Wio-E5 module. I've read through the bootloader manual and Seeed studio has their own set of instructions for wiping their pre-existing code which I have gone through, but my question is in regards to after I have successfully flashed code similar to the ping-pong examples in subGHz. Specifically, is it possible to upload code using an ST-Link without access to the BOOT pin?

For reference, the module gives access to SWDIO, SWCLK, and NJRST, which I have broken out these pins along with GND and PWR, but the BOOT pin is not accessible. In my past experience using STM32, I flashed through UART which did require the bootloader and hence boot pins were the easiest way to go. From what I have read online, it seems that flashing through ST-Link doesn't require the system to be put into bootmode but would appreciate some confirmation on this. Seeed's factory firmware appears to have made a different pin function as a boot pin which makes me worry that I may never be able to re-enter the programming mode after the initial upload.

Thanks.

1 REPLY 1

Yes, it should be possible.

 


@llee_2468 wrote:

In my past experience using STM32, I flashed through UART which did require the bootloader .


A bootloader is code which runs to do the updating - so you need the BOOT pins to select this code, rather than the "normal" application code.

The whole point of SWD (also JTAG) is that it has direct access to the memories - so doesn't need to run any code.

Possible things which could obstruct SWD:

  • The "normal" code could disable or repurpose the SWD pins;
    You should be able to get around this with NRST to connect under hardware reset.
     
  • The SWD could be locked-out for security.