About the Erase and Write API

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About the Erase and Write API

ソリューションへジャンプ
2,218件の閲覧回数
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,211件の閲覧回数
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,212件の閲覧回数
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,200件の閲覧回数
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,191件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@jaylou

       yes.

0 件の賞賛
返信