Unable to access upper 256KB of Flash on MK22FN1M0A MCU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to access upper 256KB of Flash on MK22FN1M0A MCU

972 次查看
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?

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

896 次查看
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

896 次查看
Keith4DSmith
Contributor V

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

0 项奖励
回复