2023-06-27 07:17 PM
The EEPROM erase function doesn't seem to work with STM32CubeProgrammer v2.13.0, but works fine with STM32CubeProgrammer v2.11.0. Although v2.13.0 reports that the erase worked, the content of the EEPROM remains unaltered. Furthermore, something else in the flash microcontroller seems to be altered. I tried with multiple PCs, boards, and STLINK-V3MINIE programmers. The issue appears both on GUI and CLI versions.
There are 2 obvious differences in the logs below:
1) Time difference: v2.11.0 takes around 10s, while v2.13.0 only takes around 1s
2) v2.13.0 periodically reports this: "fail @0x00000001"
v2.11.0:
11:57:53:622 : Flash sector erase ...
11:57:53:635 : halt ap 0
11:57:53:635 : r ap 0 reg 15 PC 0x00000000
11:57:53:636 : PC value=0 :
11:57:53:636 : Flash erase...
11:57:53:636 : halt ap 0
11:57:53:636 : w ap 0 reg 15 PC (0x20000000)
11:57:53:636 : w ap 0 reg 17 MSP (0x20000500)
11:57:53:636 : w ap 0 reg 16 xPSR (0x01000000)
11:57:53:637 : w ap 0 @0x20000B80 0x00000200 bytes Data 0x00000000
11:57:53:637 : w ap 0 @0x20000000 0x00000004 bytes Data 0x0000BE00
11:57:53:640 : w ap 0 @0x20000004 0x00000754 bytes Data 0x488CB580
11:57:53:640 : Init flashloader...
11:57:53:640 : halt ap 0
11:57:53:640 : w ap 0 reg 0 R0 0x00000001
11:57:53:640 : w ap 0 reg 1 R1 0x00000000
11:57:53:643 : w ap 0 reg 2 R2 0x00000000
11:57:53:644 : w ap 0 reg 3 R3 0x00000000
11:57:53:646 : w ap 0 reg 4 R4 0x00000000
11:57:53:647 : w ap 0 reg 5 R5 0x00000000
11:57:53:649 : w ap 0 reg 6 R6 0x00000000
11:57:53:650 : w ap 0 reg 7 R7 0x00000000
11:57:53:650 : w ap 0 reg 8 R8 0x00000000
11:57:53:650 : w ap 0 reg 9 R9 0x00000000
11:57:53:650 : w ap 0 reg 10 R10 0x00000000
11:57:53:650 : w ap 0 reg 11 R11 0x00000000
11:57:53:650 : w ap 0 reg 12 R12 0x00000000
11:57:53:650 : w ap 0 reg 13 SP 0x00000000
11:57:53:650 : w ap 0 reg 14 LR 0x20000001
11:57:53:651 : w ap 0 reg 15 PC 0x20000005
11:57:53:651 : w ap 0 reg 16 xPSR 0x01000000
11:57:53:651 : w ap 0 reg 17 MSP 0x20000B54
11:57:53:652 : w ap 0 reg 18 PSP 0x00000000
11:57:53:652 : run ap 0
11:57:53:655 : halt ap 0
11:57:53:655 : r ap 0 reg 0 R0 0x00000001
11:57:53:656 : Loader sector erase...
11:57:53:656 : w ap 0 reg 0 R0 0x08080000
11:57:53:657 : w ap 0 reg 1 R1 0x08080000
11:57:53:657 : w ap 0 reg 2 R2 0x00000001
11:57:53:657 : w ap 0 reg 3 R3 0x00000000
11:57:53:657 : w ap 0 reg 4 R4 0x00000000
11:57:53:657 : w ap 0 reg 5 R5 0x00000000
11:57:53:657 : w ap 0 reg 6 R6 0x00000000
11:57:53:658 : w ap 0 reg 7 R7 0x00000000
11:57:53:659 : w ap 0 reg 8 R8 0x00000000
11:57:53:659 : w ap 0 reg 9 R9 0x00000000
11:57:53:659 : w ap 0 reg 10 R10 0x00000000
11:57:53:663 : w ap 0 reg 11 R11 0x00000000
11:57:53:664 : w ap 0 reg 12 R12 0x00000000
11:57:53:665 : w ap 0 reg 13 SP 0x00000000
11:57:53:665 : w ap 0 reg 14 LR 0x20000001
11:57:53:665 : w ap 0 reg 15 PC 0x200001DB
11:57:53:666 : w ap 0 reg 16 xPSR 0x01000000
11:57:53:666 : w ap 0 reg 17 MSP 0x20000B54
11:57:53:667 : w ap 0 reg 18 PSP 0x00000000
11:57:53:667 : run ap 0
11:57:58:763 : halt ap 0
11:57:58:764 : r ap 0 reg 0 R0 0x00000001
11:57:58:764 : Init flashloader...
11:57:58:766 : halt ap 0
11:57:58:767 : w ap 0 reg 0 R0 0x00000001
11:57:58:767 : w ap 0 reg 1 R1 0x00000000
11:57:58:768 : w ap 0 reg 2 R2 0x00000000
11:57:58:768 : w ap 0 reg 3 R3 0x00000000
11:57:58:768 : w ap 0 reg 4 R4 0x00000000
11:57:58:769 : w ap 0 reg 5 R5 0x00000000
11:57:58:769 : w ap 0 reg 6 R6 0x00000000
11:57:58:770 : w ap 0 reg 7 R7 0x00000000
11:57:58:770 : w ap 0 reg 8 R8 0x00000000
11:57:58:770 : w ap 0 reg 9 R9 0x00000000
11:57:58:770 : w ap 0 reg 10 R10 0x00000000
11:57:58:770 : w ap 0 reg 11 R11 0x00000000
11:57:58:771 : w ap 0 reg 12 R12 0x00000000
11:57:58:771 : w ap 0 reg 13 SP 0x00000000
11:57:58:772 : w ap 0 reg 14 LR 0x20000001
11:57:58:773 : w ap 0 reg 15 PC 0x20000005
11:57:58:780 : w ap 0 reg 16 xPSR 0x01000000
11:57:58:784 : w ap 0 reg 17 MSP 0x20000B54
11:57:58:784 : w ap 0 reg 18 PSP 0x00000000
11:57:58:784 : run ap 0
11:57:58:786 : halt ap 0
11:57:58:786 : r ap 0 reg 0 R0 0x00000001
11:57:58:786 : Loader sector erase...
11:57:58:788 : w ap 0 reg 0 R0 0x08080C00
11:57:58:788 : w ap 0 reg 1 R1 0x08080C00
11:57:58:788 : w ap 0 reg 2 R2 0x00000001
11:57:58:789 : w ap 0 reg 3 R3 0x00000000
11:57:58:789 : w ap 0 reg 4 R4 0x00000000
11:57:58:790 : w ap 0 reg 5 R5 0x00000000
11:57:58:791 : w ap 0 reg 6 R6 0x00000000
11:57:58:792 : w ap 0 reg 7 R7 0x00000000
11:57:58:792 : w ap 0 reg 8 R8 0x00000000
11:57:58:792 : w ap 0 reg 9 R9 0x00000000
11:57:58:792 : w ap 0 reg 10 R10 0x00000000
11:57:58:793 : w ap 0 reg 11 R11 0x00000000
11:57:58:793 : w ap 0 reg 12 R12 0x00000000
11:57:58:793 : w ap 0 reg 13 SP 0x00000000
11:57:58:794 : w ap 0 reg 14 LR 0x20000001
11:57:58:794 : w ap 0 reg 15 PC 0x200001DB
11:57:58:794 : w ap 0 reg 16 xPSR 0x01000000
11:57:58:795 : w ap 0 reg 17 MSP 0x20000B54
11:57:58:795 : w ap 0 reg 18 PSP 0x00000000
11:57:58:795 : run ap 0
11:58:03:903 : halt ap 0
11:58:03:903 : r ap 0 reg 0 R0 0x00000001
11:58:03:903 : Existing specified sectors are erased successfully Protected sectors are not erased
v2.13:0:
11:58:54:118 : Flash sector erase ...
11:58:54:123 : Flash erase...
11:58:54:134 : halt ap 0
11:58:54:134 : w ap 0 reg 15 PC (0x20000000)
11:58:54:134 : w ap 0 reg 17 MSP (0x20000500)
11:58:54:135 : w ap 0 reg 16 xPSR (0x01000000)
11:58:54:136 : w ap 0 @0x20000B00 : 0x00000200 bytes, Data 0x00000000...
11:58:54:137 : w ap 0 @0x20000000 : 0x00000004 bytes, Data 0x0000BE00...
11:58:54:137 : w ap 0 @0x20000004 : 0x000006C2 bytes, Data 0xB672B580...
11:58:54:137 : Init flashloader...
11:58:54:137 : halt ap 0
11:58:54:138 : w ap 0 reg 0 R0 0x00000001
11:58:54:138 : w ap 0 reg 1 R1 0x00000000
11:58:54:138 : w ap 0 reg 2 R2 0x00000000
11:58:54:138 : w ap 0 reg 3 R3 0x00000000
11:58:54:138 : w ap 0 reg 4 R4 0x00000000
11:58:54:138 : w ap 0 reg 5 R5 0x00000000
11:58:54:139 : w ap 0 reg 6 R6 0x00000000
11:58:54:139 : w ap 0 reg 7 R7 0x00000000
11:58:54:139 : w ap 0 reg 8 R8 0x00000000
11:58:54:139 : w ap 0 reg 9 R9 0x00000000
11:58:54:139 : w ap 0 reg 10 R10 0x00000000
11:58:54:139 : w ap 0 reg 11 R11 0x00000000
11:58:54:139 : w ap 0 reg 12 R12 0x00000000
11:58:54:139 : w ap 0 reg 13 SP 0x00000000
11:58:54:139 : w ap 0 reg 14 LR 0x20000001
11:58:54:141 : w ap 0 reg 15 PC 0x20000005
11:58:54:141 : w ap 0 reg 16 xPSR 0x01000000
11:58:54:142 : w ap 0 reg 17 MSP 0x20000AC2
11:58:54:142 : w ap 0 reg 18 PSP 0x00000000
11:58:54:142 : run ap 0
11:58:54:143 : halt ap 0
11:58:54:143 : r ap 0 reg 0 R0 0x00000001
11:58:54:143 : Loader sector erase...
11:58:54:144 : w ap 0 reg 0 R0 0x00000000
11:58:54:145 : w ap 0 reg 1 R1 0x00000000
11:58:54:146 : w ap 0 reg 2 R2 0x00000001
11:58:54:146 : w ap 0 reg 3 R3 0x00000000
11:58:54:147 : w ap 0 reg 4 R4 0x00000000
11:58:54:155 : w ap 0 reg 5 R5 0x00000000
11:58:54:158 : w ap 0 reg 6 R6 0x00000000
11:58:54:160 : w ap 0 reg 7 R7 0x00000000
11:58:54:162 : w ap 0 reg 8 R8 0x00000000
11:58:54:163 : w ap 0 reg 9 R9 0x00000000
11:58:54:163 : w ap 0 reg 10 R10 0x00000000
11:58:54:164 : w ap 0 reg 11 R11 0x00000000
11:58:54:164 : w ap 0 reg 12 R12 0x00000000
11:58:54:164 : w ap 0 reg 13 SP 0x00000000
11:58:54:165 : w ap 0 reg 14 LR 0x20000001
11:58:54:165 : w ap 0 reg 15 PC 0x2000016D
11:58:54:165 : w ap 0 reg 16 xPSR 0x01000000
11:58:54:168 : w ap 0 reg 17 MSP 0x20000AC2
11:58:54:168 : w ap 0 reg 18 PSP 0x00000000
11:58:54:168 : run ap 0
11:58:54:174 : halt ap 0
11:58:54:174 : r ap 0 reg 0 R0 0x00000001
11:58:54:174 : Init flashloader...
11:58:54:174 : halt ap 0
11:58:54:174 : w ap 0 reg 0 R0 0x00000001
11:58:54:175 : w ap 0 reg 1 R1 0x00000000
11:58:54:175 : w ap 0 reg 2 R2 0x00000000
11:58:54:175 : w ap 0 reg 3 R3 0x00000000
11:58:54:175 : w ap 0 reg 4 R4 0x00000000
11:58:54:175 : w ap 0 reg 5 R5 0x00000000
11:58:54:175 : w ap 0 reg 6 R6 0x00000000
11:58:54:176 : w ap 0 reg 7 R7 0x00000000
11:58:54:176 : w ap 0 reg 8 R8 0x00000000
11:58:54:176 : w ap 0 reg 9 R9 0x00000000
11:58:54:176 : w ap 0 reg 10 R10 0x00000000
11:58:54:176 : w ap 0 reg 11 R11 0x00000000
11:58:54:176 : w ap 0 reg 12 R12 0x00000000
11:58:54:176 : w ap 0 reg 13 SP 0x00000000
11:58:54:176 : w ap 0 reg 14 LR 0x20000001
11:58:54:176 : w ap 0 reg 15 PC 0x20000005
11:58:54:176 : w ap 0 reg 16 xPSR 0x01000000
11:58:54:176 : w ap 0 reg 17 MSP 0x20000AC2
11:58:54:176 : w ap 0 reg 18 PSP 0x00000000
11:58:54:176 : run ap 0
11:58:54:176 : halt ap 0
11:58:54:176 : r ap 0 reg 0 R0 0x00000001
11:58:54:176 : Loader sector erase...
11:58:54:176 : w ap 0 reg 0 R0 0x00000000
11:58:54:176 : w ap 0 reg 1 R1 0x00000000
11:58:54:176 : w ap 0 reg 2 R2 0x00000001
11:58:54:177 : w ap 0 reg 3 R3 0x00000000
11:58:54:177 : w ap 0 reg 4 R4 0x00000000
11:58:54:177 : w ap 0 reg 5 R5 0x00000000
11:58:54:177 : w ap 0 reg 6 R6 0x00000000
11:58:54:177 : w ap 0 reg 7 R7 0x00000000
11:58:54:178 : w ap 0 reg 8 R8 0x00000000
11:58:54:178 : w ap 0 reg 9 R9 0x00000000
11:58:54:178 : w ap 0 reg 10 R10 0x00000000
11:58:54:178 : w ap 0 reg 11 R11 0x00000000
11:58:54:178 : w ap 0 reg 12 R12 0x00000000
11:58:54:178 : w ap 0 reg 13 SP 0x00000000
11:58:54:179 : w ap 0 reg 14 LR 0x20000001
11:58:54:179 : w ap 0 reg 15 PC 0x2000016D
11:58:54:187 : w ap 0 reg 16 xPSR 0x01000000
11:58:54:187 : w ap 0 reg 17 MSP 0x20000AC2
11:58:54:187 : w ap 0 reg 18 PSP 0x00000000
11:58:54:187 : run ap 0
11:58:54:192 : halt ap 0
11:58:54:192 : r ap 0 reg 0 R0 0x00000001
11:58:54:192 : Existing specified sectors are erased successfully Protected sectors are not erased
11:58:54:220 : r ap 0 @0x1FF01FFE 0x00000004 bytes Data 0x00000041
11:58:54:220 : fail @0x00000001
11:58:55:176 : r ap 0 @0x1FF01FFE 0x00000004 bytes Data 0x00000041
11:58:55:176 : fail @0x00000001
2023-07-03 03:36 AM
Hello @edurohr ,
Thanks for your feedback,
This issue has already been reported internally and will be fixed in the upcoming release. I'll keep you posted.
Internal ticket number: 148116 (This is an internal tracking number and is not accessible or usable by customers).
Sara.
2023-08-10 10:03 PM
Hi Sara,
Was this issue fixed in release 2.14?
2023-08-21 07:30 AM