[85] NVMC: Reading or executing from flash memory can lead to errors when scaling frequency

This anomaly applies to IC Rev. Engineering A, build codes QKAA-AB0.

Domains

Application

Symptoms

Flash memory read can be corrupted. Executing from flash can lead to errors.

Conditions

The application core clock is scaled from 128 MHz to 64 MHz.

Consequences

Data read from flash can be corrupt. Illegal instructions can be executed from flash.

Workaround

Apply the following code before switching:

*((uint32_t *)0x50038504ul) =0x1
Set CLOCK->HFCLKCTRL to 64 MHz
Wait ~1ms
*((uint32_t *)0x50038504ul) =0x0