S32K344 - C40 functions to perform erase / write / read operations on data flash memory

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

S32K344 - C40 functions to perform erase / write / read operations on data flash memory

842 次查看
Djuric
Contributor III

Hello,

I need help with the process of, erasing and writing to data flash memory in S32K344 mcu.

I read the reference manual and the data sheet, but the concept of the data flash sector is not clear to me.

How many sectors are there in data flash memory?

How exactly are they divided, and what is their size in bytes?

Is sector size fixed or can it be adjusted?

What is the virtual sector?

These are three functions that I should use:

  1. C40_Ip_VirtualSectorsType C40_Ip_GetSectorNumberFromAddress(uint32 TargetAddress);
  2. C40_Ip_StatusType C40_Ip_MainInterfaceSectorErase(C40_Ip_VirtualSectorsType VirtualSector, uint8 DomainIdValue);
  3. C40_Ip_StatusType C40_Ip_MainInterfaceWrite(uint32 LogicalAddress, uint32 Length, const uint8 *SourceAddressPtr, uint8 DomainIdValue);

can you help me with the arguments that are passed to these functions.

I know it's a lot, but I would like someone more experienced to help me with this because I'm totally new to this game.

Thank you!

0 项奖励
回复
1 回复

823 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Djuric

You can find the all sector related infos on the C40_Ip_Cfg.h

Senlent_1-1717385066197.png

 

Also please read the application we provided for User.

https://www.nxp.com/webapp/Download?colCode=AN13388

 

0 项奖励
回复