S32K144 NVM write Error

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

S32K144 NVM write Error

1,079 次查看
ipsitamishra
Contributor I

s32k144 nvmodule

I am working with Flex NVM of s32k144. Currently I am only able to write data to NVM in block size of 8bytes, Is there a way to write the data byte by byte?

Every time before writing to the NVM I am doing erase operation of the block, is it necessary to erase the block before writing the data? I tried to write data without erasing, but I am getting the error code "E_FTFE_ERR_MGSTAT0" .

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

905 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, it needs to be erased, because the programming operation can only change NVM bits from the erase state (1) to the programmed state (0), otherwise the error flag (MGSTAT0) is set. The smallest portion that can be erased is a sector (2k). You cannot write data in single bytes, it must be a phrase (8 bytes).

 

Regards,

Daniel

0 项奖励