Skip to main content
Graduate
January 27, 2023
Question

STM32L4R9 SPI bootloader. Strange behaviour after executing global mass erase command

  • January 27, 2023
  • 2 replies
  • 852 views

I'm programming an STM32L4R9 through SPI according to the AN4286 application note.

The problem I have is that after a global mass erase command (0x44) it won't let me execute the read memory (0x11) or the write memory (0x31), even if I wait several seconds after the global mass erase.

To solve this, I must after global mass erase restart the MCU into bootloader mode again, then read memory and write memory commands work.

I have previously used my bootloader client for the STM32F429 and it had not this problem.

Anybody knows why it behaves like this?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 29, 2023

    Hello @MSipo,

    Have a look to the errata sheet related to the STM32L4R9 devices, to check if you have the same conditions as described in the doc.

    It May be related to the section: 2.2.13 Bootloader not functional on 1‑Mbyte devices.

    Imen

    MSipoAuthor
    Graduate
    January 30, 2023

    0693W00000Y9S6zQAF.pngThe bootloader version is 9.2.

    0693W00000Y9S6BQAV.pngAt least I can make it work by restarting the bootloader after a global mass erase before I run any write memory command. :grinning_face: