EEPROM driver for S12GA64

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

EEPROM driver for S12GA64

1,276 Views
abhijithshankarenn
Contributor I

Can you please provide sample driver code for EEPROM driver functions like EEPROM_Write, EEPROM_Read of S12GA64 ?

0 Kudos
3 Replies

1,269 Views
RadekS
NXP Employee
NXP Employee

Hello abhijithshankarenn,

The Standard Software Driver for NVM in S12G and S12VR is the official NVM driver for Flash and EEPROM. The package contains also a demo application.

 

You may also use the next example codes for learning the basics about Flash/EEPROM operations. It does not use an NVM_SSD driver but it is rather simple, readable, and well-commented code.

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-EEPROM-example-code/ta-p/1108476

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-Flash-example-code/ta-p/1108954

I hope it helps you.

BR

RadekS

0 Kudos

1,249 Views
abhijithshankarenn
Contributor I

will the share driver supports for S12GA64 ?

And don't we have any eeprom command for eeprom read ?

0 Kudos

1,242 Views
RadekS
NXP Employee
NXP Employee

Yes, S12G64 is specified as a supported derivative in SSD driver (there isn't any difference in NVM operations between "G" and "GA" versions). The derivative configuration is made by FLASH_DERIVATIVE macro. Please look at chapter 2.4 in SSD driver user manual.

 

No, there isn't any specific function for EEPROM or Flash read. You may read these memories the same way as RAM. So, you may define and access data as variable/constants or you may apply a simple read function via a pointer. For example:

address = 0x000B00;

result = * ((unsigned int*) address);

 

I hope it helps you.

BR

RadekS

0 Kudos