Unable to access upper 256KB of Flash on MK22FN1M0A MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to access upper 256KB of Flash on MK22FN1M0A MCU

424 Views
Keith4DSmith
Contributor V

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?

Labels (1)
Tags (1)
0 Kudos
2 Replies

348 Views
mjbcswitzerland
Specialist V

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

348 Views
Keith4DSmith
Contributor V

Mark - Thank you. That's exactly what happened, during testing.

0 Kudos