Skip to main content
Visitor II
March 26, 2024
Question

ST Bootloader behavior when flash is not programmed

  • March 26, 2024
  • 1 reply
  • 623 views

Hi everyone!

I found the following diagramm in AN2606 and my understanding was, that the bootloader will be executed when there is no valid content in flash memory.

I know that boot pins or a jump from user code can be used to enter the ST bootloader, but it would be interesting for me if it will be executed for new chips which were not programmed before, too. In this case they could be flashed without SWD/ST-Link (boot pins are not an option here).

I tried to erase the complete flash to simulate a new chip, but it did not become active as DFU device in ST bootloader.

It seems to be a misunderstanding on my side. Can you give me further information how to interpret?

Thanks and regards

KF

kf_SEA_0-1711459809997.png

 

    This topic has been closed for replies.

    1 reply

    Super User
    March 26, 2024

    Hi,

    >the bootloader will be executed when there is no valid content in flash memory.

    Right, but there are some details, see AN2606 , table 2 :

    AScha3_0-1711465008126.png

    setting of option bytes and -maybe- bootloader version .

    AScha3_1-1711465395515.png

     

    + Did you power cycle it after full erase ? (and look, whats you option byte setting)

    + Did you try with a 100% new chip?