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

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

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

315 Views
Djuric
Contributor I

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 Kudos
Reply
1 Reply

296 Views
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 Kudos
Reply