EEPROM driver for S12GA64

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

EEPROM driver for S12GA64

2,351件の閲覧回数
abhijithshankarenn
Contributor I

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

0 件の賞賛
返信
3 返答(返信)

2,344件の閲覧回数
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 件の賞賛
返信

2,324件の閲覧回数
abhijithshankarenn
Contributor I

will the share driver supports for S12GA64 ?

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

0 件の賞賛
返信

2,317件の閲覧回数
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 件の賞賛
返信