cancel
Showing results for 
Search instead for 
Did you mean: 

How to run code without power cycle after programing a virgin STM32L4xx over i2c without touching reset or boot0 pin?

Ankan
Associate

The bootloader starts automatically on a virgin STM32L4xx MCU without putting boot0 as flash is empty. I can then flash it over the i2c bus but is unable to get the code running without power cycle.

I have tried, software reset, hardware reset and running the Readout Unprotect command to force a option bytes read.

Is it possible to get the new code up and running without power cycle the device?

2 REPLIES 2
MM..1
Chief III

If you change over I2C option bytes RDP then NO. Only power cycle.

Maybe write a short program which performs OBL_LAUNCH and then a sfotware reset, into RAM, write it there using bootloader and run it using Go?

JW