Skip to main content
AAit.1
Visitor II
July 12, 2021
Question

Contents mismatch error (Flash = 00H) on STM32L4R5

  • July 12, 2021
  • 3 replies
  • 3059 views

Hello,

I'm having a problem after having changed the AHB Prescaler while the code was running...

It did work for like 5 minutes then the problem appeared and I'm not able to do anything now

Here is the error :

Contents mismatch at: 08000000H (Flash=00H Required=C0H) !

Contents mismatch at: 08000001H (Flash=00H Required=0AH) !

Contents mismatch at: 08000003H (Flash=00H Required=20H) !

Contents mismatch at: 08000004H (Flash=00H Required=D1H) !

Contents mismatch at: 08000005H (Flash=00H Required=01H) !

Contents mismatch at: 08000007H (Flash=00H Required=08H) !

Contents mismatch at: 08000008H (Flash=00H Required=31H) !

Contents mismatch at: 08000009H (Flash=00H Required=2FH) !

Contents mismatch at: 0800000BH (Flash=00H Required=08H) !

Contents mismatch at: 0800000CH (Flash=00H Required=13H) !

Contents mismatch at: 0800000DH (Flash=00H Required=2DH) !

Contents mismatch at: 0800000FH (Flash=00H Required=08H) !

Contents mismatch at: 08000010H (Flash=00H Required=2FH) !

Contents mismatch at: 08000011H (Flash=00H Required=2FH) !

Contents mismatch at: 08000013H (Flash=00H Required=08H) !

Contents mismatch at: 08000014H (Flash=00H Required=2DH) !

Contents mismatch at: 08000015H (Flash=00H Required=03H) !

Contents mismatch at: 08000017H (Flash=00H Required=08H) !

Contents mismatch at: 08000018H (Flash=00H Required=B3H) !

Contents mismatch at: 08000019H (Flash=00H Required=44H) !

Contents mismatch at: 0800001BH (Flash=00H Required=08H) !

Contents mismatch at: 0800002CH (Flash=00H Required=95H) !

Contents mismatch at: 0800002DH (Flash=00H Required=42H) !

Contents mismatch at: 0800002FH (Flash=00H Required=08H) !

Contents mismatch at: 08000030H (Flash=00H Required=2FH) !

Contents mismatch at: 08000031H (Flash=00H Required=03H) !

Contents mismatch at: 08000033H (Flash=00H Required=08H) !

Contents mismatch at: 08000038H (Flash=00H Required=33H) !

Contents mismatch at: 08000039H (Flash=00H Required=2FH) !

Contents mismatch at: 0800003BH (Flash=00H Required=08H) !

Contents mismatch at: 0800003CH (Flash=00H Required=97H) !

Contents mismatch at: 0800003DH (Flash=00H Required=42H) !

Contents mismatch at: 0800003FH (Flash=00H Required=08H) !

Contents mismatch at: 08000040H (Flash=00H Required=EBH) !

Contents mismatch at: 08000041H (Flash=00H Required=01H) !

Contents mismatch at: 08000043H (Flash=00H Required=08H) !

Contents mismatch at: 08000044H (Flash=00H Required=EBH) !

Contents mismatch at: 08000045H (Flash=00H Required=01H) !

Contents mismatch at: 08000047H (Flash=00H Required=08H) !

Contents mismatch at: 08000048H (Flash=00H Required=EBH) !

Contents mismatch at: 08000049H (Flash=00H Required=01H) !

Contents mismatch at: 0800004BH (Flash=00H Required=08H) !

Contents mismatch at: 0800004CH (Flash=00H Required=EBH) !

Contents mismatch at: 0800004DH (Flash=00H Required=01H) !

Contents mismatch at: 0800004FH (Flash=00H Required=08H) !

Contents mismatch at: 08000050H (Flash=00H Required=EBH) !

Contents mismatch at: 08000051H (Flash=00H Required=01H) !

Contents mismatch at: 08000053H (Flash=00H Required=08H) !

Contents mismatch at: 08000054H (Flash=00H Required=EBH) !

Contents mismatch at: 08000055H (Flash=00H Required=01H) !

Contents mismatch at: 08000057H (Flash=00H Required=08H) !

Contents mismatch at: 08000058H (Flash=00H Required=EBH) !

Contents mismatch at: 08000059H (Flash=00H Required=01H) !

Contents mismatch at: 0800005BH (Flash=00H Required=08H) !

Contents mismatch at: 0800005CH (Flash=00H Required=EBH) !

Contents mismatch at: 0800005DH (Flash=00H Required=01H) !

Contents mismatch at: 0800005FH (Flash=00H Required=08H) !

Contents mismatch at: 08000060H (Flash=00H Required=EBH) !

Contents mismatch at: 08000061H (Flash=00H Required=01H) !

Contents mismatch at: 08000063H (Flash=00H Required=08H) !

Contents mismatch at: 08000064H (Flash=00H Required=EBH) !

Contents mismatch at: 08000065H (Flash=00H Required=01H) !

Contents mismatch at: 08000067H (Flash=00H Required=08H) !

Contents mismatch at: 08000068H (Flash=00H Required=EBH) !

Contents mismatch at: 08000069H (Flash=00H Required=01H) !

Contents mismatch at: 0800006BH (Flash=00H Required=08H) !

Contents mismatch at: 0800006CH (Flash=00H Required=EBH) !

Contents mismatch at: 0800006DH (Flash=00H Required=01H) !

Contents mismatch at: 0800006FH (Flash=00H Required=08H) !

Contents mismatch at: 08000070H (Flash=00H Required=EBH) !

Contents mismatch at: 08000071H (Flash=00H Required=01H) !

Contents mismatch at: 08000073H (Flash=00H Required=08H) !

Contents mismatch at: 08000074H (Flash=00H Required=EBH) !

Contents mismatch at: 08000075H (Flash=00H Required=01H) !

Contents mismatch at: 08000077H (Flash=00H Required=08H) !

Contents mismatch at: 08000078H (Flash=00H Required=EBH) !

Contents mismatch at: 08000079H (Flash=00H Required=01H) !

Contents mismatch at: 0800007BH (Flash=00H Required=08H) !

Contents mismatch at: 0800007CH (Flash=00H Required=EBH) !

Contents mismatch at: 0800007DH (Flash=00H Required=01H) !

Contents mismatch at: 0800007FH (Flash=00H Required=08H) !

Contents mismatch at: 08000080H (Flash=00H Required=EBH) !

Contents mismatch at: 08000081H (Flash=00H Required=01H) !

Contents mismatch at: 08000083H (Flash=00H Required=08H) !

Contents mismatch at: 08000084H (Flash=00H Required=EBH) !

Contents mismatch at: 08000085H (Flash=00H Required=01H) !

Contents mismatch at: 08000087H (Flash=00H Required=08H) !

Contents mismatch at: 08000088H (Flash=00H Required=EBH) !

Contents mismatch at: 08000089H (Flash=00H Required=01H) !

Contents mismatch at: 0800008BH (Flash=00H Required=08H) !

Contents mismatch at: 0800008CH (Flash=00H Required=EBH) !

Contents mismatch at: 0800008DH (Flash=00H Required=01H) !

Contents mismatch at: 0800008FH (Flash=00H Required=08H) !

Contents mismatch at: 08000090H (Flash=00H Required=EBH) !

Contents mismatch at: 08000091H (Flash=00H Required=01H) !

Contents mismatch at: 08000093H (Flash=00H Required=08H) !

Contents mismatch at: 08000094H (Flash=00H Required=EBH) !

Contents mismatch at: 08000095H (Flash=00H Required=01H) !

Contents mismatch at: 08000097H (Flash=00H Required=08H) !

Contents mismatch at: 08000098H (Flash=00H Required=EBH) !

Too many errors to display !

Error: Flash Download failed - "Cortex-M4"

I tried to change some debugger settings like the download verification, I still end up after the debugging starts with only "Movs r0, r0" instructions

This topic has been closed for replies.

3 replies

Technical Moderator
July 14, 2021

Hello @AAit.1​ ,

Check the flash algorithm settings under the debugger settings.

Maybe you should update and use the latest IDE and the latest release of STM32L4 family pack.

Otherwise, try to select the external loader using STM32CubeProgrammer for the board in order to flash on target.

Make sure to follow this FAQ: Why my STM32 doesn't start? and please refer to this post, it maybe helpful.

If your issue is solved, please close this post by choosing "Select as Best" .

This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Technical Moderator
July 31, 2021

Hello @AAit.1​ ,

Please share your update and let me know if your issue is solved. This will be helpful for the Community =)

Thanks

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
gbm
Lead III
August 1, 2021

If it's Keil MDK-ARM, then the Flash page erase algorithm is not working for STM32L4+ family - as a quick workaround do full Flash-Erase before programming (from Flash menu).

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice