About the Erase and Write API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About the Erase and Write API

Jump to solution
2,302 Views
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 Kudos
Reply
1 Solution
2,295 Views
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,

 

View solution in original post

0 Kudos
Reply
3 Replies
2,296 Views
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 Kudos
Reply
2,284 Views
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 Kudos
Reply
2,275 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@jaylou

       yes.

0 Kudos
Reply