AnsweredAssumed Answered

Hard Fault encountered when writing to FMC->PFB01CR on MK60F12

Question asked by David Bender on Sep 3, 2014
Latest reply on Sep 8, 2014 by EARL GOODRICH

When I finish erasing or programming flash, I attempt to run a routine (IN RAM) to clear the cache, consisting of only the following line

 

FMC->PFB01CR |= FMC_PFB01CR_S_B_INV_MASK | FMC_PFB01CR_CINV_WAY_MASK;

 

This causes a Hard Fault, with the following fault register values:

 

HFSR: 0x40000000

CFSR: 0x00000400

 

So as you can see, I am getting an imprecise Bus Error with no valid BFAR.

 

Any ideas what the problem may be?

Outcomes