cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to erase memory (STM32F746G)

khaaal
Associate II

I am trying to upload a program to the board but i keep getting this error

Error: failed to erase memory

Read/Write protection is disabled and firmware is up to date (V2J33M25)

This is what i get in the LOG

13:49:39:117 : Memory Programming ...

13:49:39:117 : Opening and parsing file: ETH_FINAL.elf

13:49:39:139 : File : ETH_FINAL.elf

13:49:39:139 : Size : 12184 Bytes

13:49:39:139 : Address : 0x08000000

13:49:39:139 : Erasing Segment <0> Address <0x08000000> Size <12184>Bytes

13:49:39:139 : Erasing memory corresponding to segment 0:

13:49:39:139 : Memory erase...

13:49:39:139 : reset ap 0

13:49:39:139 : run ap 0

13:49:39:140 : halt ap 0 Status = 0

13:49:39:140 : w ap 0 reg 15 (0x20000000)

13:49:39:140 : w ap 0 reg 17 (0x20000500)

13:49:39:140 : w ap 0 reg 16 (0x01000000)

13:49:39:140 : w ap 0 @0x20000D80 0x00000200 bytes

13:49:39:140 : w ap 0 @0x20000000 0x00000004 bytes

13:49:39:223 : w ap 0 @0x20000004 0x00000954 bytes

13:49:39:223 : Erasing internal memory sector 0

13:49:39:223 : Init flashloader...

13:49:39:223 : halt ap 0

13:49:39:223 : w ap 0 reg 0 0x00000001

13:49:39:223 : w ap 0 reg 1 0x00000000

13:49:39:223 : w ap 0 reg 2 0x00000000

13:49:39:223 : w ap 0 reg 3 0x00000000

13:49:39:223 : w ap 0 reg 4 0x00000000

13:49:39:223 : w ap 0 reg 5 0x00000000

13:49:39:223 : w ap 0 reg 6 0x00000000

13:49:39:223 : w ap 0 reg 7 0x00000000

13:49:39:223 : w ap 0 reg 8 0x00000000

13:49:39:223 : w ap 0 reg 9 0x00000000

13:49:39:223 : w ap 0 reg 10 0x00000000

13:49:39:223 : w ap 0 reg 11 0x00000000

13:49:39:223 : w ap 0 reg 12 0x00000000

13:49:39:224 : w ap 0 reg 13 0x00000000

13:49:39:224 : w ap 0 reg 14 0x20000001

13:49:39:224 : w ap 0 reg 15 0x20000005

13:49:39:224 : w ap 0 reg 16 0x01000000

13:49:39:224 : w ap 0 reg 17 0x20000D54

13:49:39:225 : w ap 0 reg 18 0x00000000

13:49:39:225 : run ap 0

13:49:44:004 : halt ap 0

13:49:44:004 : Init function fail with timeout

13:49:44:023 : r ap 0 reg 16 0x01000003

13:49:44:023 : Loader sector erase...

13:49:44:023 : Error: failed to erase memory

13:49:44:032 : Error: failed to erase memory

2 REPLIES 2

Hello @khaaal​ 

I test it with using STM32CubeProgrammer v2.1.0, STM32F746G-DISCO and had no error, everything works correctly .

Could you please give me more details about the Title of the board (Discovery, Eval or Nucleo) to check the issue, also witch version of STM32CubeProgrammer have you used ?

Please send me your ETH_FINAL.elf file to check the problem.

Best regards,

Nesrine

34m25 is in the most ​current standalone update as I recall.

Check power supply, vcap, etc. Have adequate bulk capacitance.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..