Skip to main content
Simon86
Associate
December 16, 2019
Question

Failed to erase memory (sector 5 with 128kB) via SPI and STM32CubeProgrammer 2.2.1

  • December 16, 2019
  • 0 replies
  • 824 views

Hi,

we have troubles during flashing a STM32F446 with STM32CubeProgrammer 2.2.1 via SPI.

Every time the Cube Programmer wants to erase the "big" Sector 5 (128 kB) an timout error occurs. (see log file)

Everything works fine with a Hex-File except the "big" (128 kB) sectors 5 to 7 !

Is this a known bug or have we done anything wrong?

13:09:30:674 : Erasing Segment Address Size Bytes

13:09:30:674 : Erasing memory corresponding to segment 6:

13:09:30:674 : Erasing internal memory sectors [4 5]

13:09:30:674 : s 1 byte(s): 0x5A

13:09:30:694 : s 1 byte(s): 0x44

13:09:30:708 : s 1 byte(s): 0xBB

13:09:30:708 : ACK received

13:09:30:708 : s 3 byte(s): 0x00 0x02 0x02

13:09:30:708 : ACK received

13:09:30:708 : s 5 byte(s): 0x00 0x04 0x00 0x05 0x01

13:09:32:690 : Timeout error!

13:09:32:690 : Error: failed to erase memory

Best Regards,

Simon Ax

This topic has been closed for replies.