2023-10-25 03:22 AM
Hi all,
I'm using stm32l431 and met a problem as below.
After power up a new stm32l431 board which had not been programmed before, the MCU enter bootloader progam and the PC value is 0x1FFF xxxx. Downlaod my own code to MCU but the code and not run.
Then, erase the MCU flash by "STM32Cube progammer", the MCU can work.
BTW, boot0 and RESET pin connect correctly.
Solved! Go to Solution.
2023-10-25 06:30 AM
If you want STM32CubeProgrammer to run directly after downloading, disconnect, reconnect, and then disconnect.
Also, the empty check mechanism is read on power-up, not reset. You either have to power cycle it or reload the option bytes. See here for more info:
https://community.st.com/t5/stm32-mcus/empty-check-mechanism-on-stm32/ta-p/49369
2023-10-25 06:20 AM
2023-10-25 06:30 AM
If you want STM32CubeProgrammer to run directly after downloading, disconnect, reconnect, and then disconnect.
Also, the empty check mechanism is read on power-up, not reset. You either have to power cycle it or reload the option bytes. See here for more info:
https://community.st.com/t5/stm32-mcus/empty-check-mechanism-on-stm32/ta-p/49369
2023-10-26 12:19 AM - edited 2023-10-26 12:20 AM
Thanks for your reply, I fixed this issue by modify 'Option bytes'