About the Erase and Write API

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

About the Erase and Write API

跳至解决方案
2,755 次查看
jaylou
Contributor I

1. Does the D-Flash have the same operation with P-Flash when you are trying to erase and write some data?

2. What about the emulated EEPROM? Does it have same operation with P-Flash when you are trying to erase and write some data?

0 项奖励
回复
1 解答
2,748 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jaylou

    1. Does the D-Flash have the same operation with P-Flash when you are trying to erase and write some data?

a. When erasing P-Flash and D-Flash, D/P Flash can be erased according to 2/4KB sector, the API used is FLASH_DRV_EraseSector();

b.For parts larger than 512KB, such as S32K146 and S32K148 have multiple 512KB Flash blocks (so you can also erase the P-Flash according to the 512KB block. Use the API FLASH_DRV_EraseBlock();)

      The P-Flash and D-Flash of S32K1xx series MCUs not only support 8B phase programming, but also support section programming. It can program 1/4 FlexRAM size P-Flash/D Flash at a time, which is 512B (S32K11x series) or 1KB ( S32K14x) to improve programming efficiency.

 

2. What about the emulated EEPROM? Does it have same operation with P-Flash when you are trying to erase and write some data?

https://mp.weixin.qq.com/s/TEXe1XWcggx-R50LT_idlg 

    I can't simply answer whether you can or can't, because the usage of many APIs is restricted. The content of the link here can help you understand part of the content of EEE.

BR!

     Jim,

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,749 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jaylou

    1. Does the D-Flash have the same operation with P-Flash when you are trying to erase and write some data?

a. When erasing P-Flash and D-Flash, D/P Flash can be erased according to 2/4KB sector, the API used is FLASH_DRV_EraseSector();

b.For parts larger than 512KB, such as S32K146 and S32K148 have multiple 512KB Flash blocks (so you can also erase the P-Flash according to the 512KB block. Use the API FLASH_DRV_EraseBlock();)

      The P-Flash and D-Flash of S32K1xx series MCUs not only support 8B phase programming, but also support section programming. It can program 1/4 FlexRAM size P-Flash/D Flash at a time, which is 512B (S32K11x series) or 1KB ( S32K14x) to improve programming efficiency.

 

2. What about the emulated EEPROM? Does it have same operation with P-Flash when you are trying to erase and write some data?

https://mp.weixin.qq.com/s/TEXe1XWcggx-R50LT_idlg 

    I can't simply answer whether you can or can't, because the usage of many APIs is restricted. The content of the link here can help you understand part of the content of EEE.

BR!

     Jim,

 

0 项奖励
回复
2,737 次查看
jaylou
Contributor I

Thank you, Sir.

So, let me get this straight.

1. When you need to erase a sector on D-Flash or/and P-Flash, you can use the same API which is FLASH_DRV_EraseSector(), right?

2. When you need to write some data on D-Flash or/and P-Flash, you can use the same API which is FLASH_DRV_Program(), right?

0 项奖励
回复
2,728 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jaylou

       yes.

0 项奖励
回复