2024-04-07 06:48 PM
How to erase STM32WLE5JC so that I can put my binary in the Seeed Studio Wio-E5 module. Web says changing the lock bit from hex value of ??? to ???. Where can I set it? TIA
Solved! Go to Solution.
2024-04-08 01:21 AM
According to https://wiki.seeedstudio.com/LoRa_E5_mini/#21-erase-factory-at-firmware you need to link the PB13/SPI_SCK/BOOT pin to Vss prior to applying power so that the pre-programmed firmware enters its "boot" mode, at which point it will start pumping out 'C' characters on the USART at 9600 baud (rather than expecting AT commands on that port).
After that you can remove code protection it using the JTAG RST, SWDIO and SWCLK pins. So you will need a JTAG interface. Sorry I can't help you on how to do it with Stm32cubeIDE; I don't use it. (I prefer the commercial, paid-for, Rowley Crossworks).
But. You are at the mercy of Seeed and rely on them including this boot mode, and only using RDP level 1. Who knows if they will continue to do so in future.
2024-04-08 01:21 AM
According to https://wiki.seeedstudio.com/LoRa_E5_mini/#21-erase-factory-at-firmware you need to link the PB13/SPI_SCK/BOOT pin to Vss prior to applying power so that the pre-programmed firmware enters its "boot" mode, at which point it will start pumping out 'C' characters on the USART at 9600 baud (rather than expecting AT commands on that port).
After that you can remove code protection it using the JTAG RST, SWDIO and SWCLK pins. So you will need a JTAG interface. Sorry I can't help you on how to do it with Stm32cubeIDE; I don't use it. (I prefer the commercial, paid-for, Rowley Crossworks).
But. You are at the mercy of Seeed and rely on them including this boot mode, and only using RDP level 1. Who knows if they will continue to do so in future.
2024-04-08 07:36 AM
From ST Youtube, connect ST LINK, open STM32CubeProgrammer. Connect, click OB on left. The RDP is displayed. Below is tested on Nueclo STM32F401RE, AA is open, BB prevvents reading of flash. BB can change back to AA with auto erase flash. CC is permanant lock. Cannot change back to AA and CANNOT write new code to flash
2024-10-11 10:55 AM
Thanks. This really Helped!