I have an MK22FN1M0A MCU, Rev ID:9, Die ID:6
I can read Flash addresses 0x00000-0xBFFFF. When I read 0xC0000, I receive a hardware fault.
The bits FCFG1:PFSIZE state the MCU supports 1MB of Flash.
What do I do to access the upper last 1/4 MB of Flash?
Also the bits FCFG1:EESIZE state the MCU supports 4K of EEPROM. I have not found a datasheet that states the 1MB flash and 4K of EEPROM are available in the same MCU.
Have I missed a proper configuration?
Hi Keith
Try performing a mass erase of the Flash and see whether the problem goes away afterwards.
If bad flash programming has taken place in a sector (eg. when a write is made twice to the same word without an erase in between) the flash may mark the sector as defective and it will hard fault on any access - an erase tends to recover.
Regards
Mark
Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K22:
- http://www.utasker.com/kinetis/FRDM-K22F.html
- http://www.utasker.com/kinetis/TWR-K22F120M.html
- http://www.utasker.com/kinetis/BLAZE_K22.html
- http://www.utasker.com/kinetis/tinyK22.html
Mark - Thank you. That's exactly what happened, during testing.