AnsweredAssumed Answered

STM32 L471 Flash Cache Error

Question asked by damh on Nov 14, 2016
Latest reply on Nov 14, 2016 by Clive One
I have found an error in flash cache perhaps.

I write to the same flash bank as the code is run from (with cube flash code). From time to time some 64bit areas in flash are filled with random nonsense (in the area the code is run from). Setting Flash->ACR with ICRST and DCRST does NOT help, disabling all interrupts does NOT help.

If i make a hard reset and dump the complete flash again, the random filled 64bit areas are filled with the correct values again. => Thats why i think, that it is a cache and not a flash problem.

The affected areas are far away from the written areas.

Does anyone have an idea how to solve the problem?

DBGMCU->IDCODE == 0x10076415
SCB->CPUID == 0x410FC241

=> STM32L471RE rev 0