Kinetis Flex NVM read just after reset causes a bus error

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

Kinetis Flex NVM read just after reset causes a bus error

跳至解决方案
922 次查看
mauroansaloni
Contributor II

Hello everybody. I'm seeking for some suggestions about a weird problem on a MK10dx32

If I read some bytes from the Flash NVM arranged as EEPROM just after being out of reset, either at power up or after a voluntary reset (watch dog) I get a bus error.

This causes a new start of the program that resets again and again.

The phenomenon shows on many boards , not on all , so i think there must be something critical, but not completely wrong.

To stop this evil behavior and being able to read without troubles I placed  a delay of 100msec  before the first read of the NVM EEPROM  

Is it  a workaround or is something that has to be normally done?

A search through the documentation did not bring any light, so I'm asking if someone already experienced a similar thing.

Thanks for any hint or suggestion

Mauro

0 项奖励
1 解答
627 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Mauro,

After the chip finished reset sequence, it need to check Flash Configuration Register (FTFL_FCNFG) [EEERDY] bit about if FlexRAM is ready for EEPROM read.

For devices with FlexNVM: This flag indicates if the EEPROM backup data has been copied to the FlexRAM and is therefore available for read access. During the reset sequence, the EEERDY flag will remain cleared while CCIF is clear and will only set if the FlexNVM block is partitioned for EEPROM.

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
2 回复数
628 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Mauro,

After the chip finished reset sequence, it need to check Flash Configuration Register (FTFL_FCNFG) [EEERDY] bit about if FlexRAM is ready for EEPROM read.

For devices with FlexNVM: This flag indicates if the EEPROM backup data has been copied to the FlexRAM and is therefore available for read access. During the reset sequence, the EEERDY flag will remain cleared while CCIF is clear and will only set if the FlexNVM block is partitioned for EEPROM.

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
627 次查看
mauroansaloni
Contributor II

Thank you Hui_Ma !

I was checking the (FTFL_FCNFG) [EEERDY] bit after a write on the EEPROM, and not also when exiting from reset.

Thanks again for your help.

Mauro

0 项奖励