How to de-initialize eeprom and c55-Flash driver?

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

How to de-initialize eeprom and c55-Flash driver?

跳至解决方案
1,755 次查看
ChenBowen
Contributor II

    I am using MPC5744P. I am not using SDK and use the c55 Flash SSD and eeprom emulation driver that NXP provided.  I initialize eeprom and Flash driver in bootloader project. Before going to the application project, it is always important to de-initialize these modules.  But I can't find the de-init api functions in each driver's PDF.  How to de-init eeprom and Flash driver?     

     By the way, After the de-initialization of Flash driver, will the Flash block lock configuration change?  

0 项奖励
回复
1 解答
1,732 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi
In case of SSD flash drivers, init function only clears flags in flash MCR register and then it initializes ssdConfig structure based on content of flash MCRE register. So, deinit is not necessary in this case. The lock bits are left untouched, so you should set them back to default state by yourself.
The situation is very similar for Emulated EEPROM drivers - in addition, the init function checks the state of EEE and it handles possible brownout state. But because no initialization of flash is needed for programming and erasing, no deinit is required. Just check the lock bits.
Regards,
Lukas

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,733 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi
In case of SSD flash drivers, init function only clears flags in flash MCR register and then it initializes ssdConfig structure based on content of flash MCRE register. So, deinit is not necessary in this case. The lock bits are left untouched, so you should set them back to default state by yourself.
The situation is very similar for Emulated EEPROM drivers - in addition, the init function checks the state of EEE and it handles possible brownout state. But because no initialization of flash is needed for programming and erasing, no deinit is required. Just check the lock bits.
Regards,
Lukas

0 项奖励
回复