Skip to main content
Graduate
January 13, 2025
Solved

new STM32L431 chip first time running failed

  • January 13, 2025
  • 2 replies
  • 1083 views

Hello,

 

When programming an ELF file into a new STM32L431 chip(blank FLASH) for the very first time, the program does not start running automatically. It only runs correctly after a full power-off reset.

However, after this initial procedure, new ELF files can be programmed and executed directly without requiring a power-off reset.

What could be causing this issue? I recall that the STM32G0 series had a similar problem.

**Additional details:**
- BOOT0 is connected to ground via a 1M ohm resistor.
- The STLINK V3 MiniE Vtarget is connected to the board’s 3.3V supply.
- OB setting is not touched.

 

Thanks!

    This topic has been closed for replies.
    Best answer by Uwe Bonnes

    Probably the "Flash empty" bit is only reset on power on reset.

    2 replies

    Graduate II
    January 13, 2025

    Probably the "Flash empty" bit is only reset on power on reset.

    dmaSTAuthor
    Graduate
    January 13, 2025

    Thanks.

    then, it's normal?

    Graduate II
    January 13, 2025

    1 MOhm for boot pull down is also very high. Try with <= 10 k.

    Graduate II
    January 13, 2025

    A lot of the parts latch BOOTx or ROM/FLASH mapping at initial power up, mainly those actively detecting blank memory and running the System Loader in the blank case. Usually it's about latching Option Bytes, and protection against exploits there.

    Check bits also in FLASH->SR, PEMPTY?