S32k3xx : Query on Embedded Flash Memory Blocks

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

S32k3xx : Query on Embedded Flash Memory Blocks

Jump to solution
3,033 Views
varunbharti
Contributor III

Hi,

I wanted to inquire about the inclusion of separate Data Flash Memory alongside Code Flash Memory in the S32K3xx microcontrollers.

Could you kindly provide some insights into why separate Data Flash memory is required in the design choice?

Thank you for your time and assistance.

0 Kudos
Reply
1 Solution
3,000 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

The most typical way for using of DFLASH is EEPROM emulation. DFlash use always smallest block with highest endurance, sometimes reaction to ECC failure is handled differently than with code flash. That’s why it is well suited for running EEPROM emulation driver above this memory space. Otherwise it just may be used for storing non-volatile data (in comparison to code flash, it has higher endurance, but lower data retention).

View solution in original post

0 Kudos
Reply
5 Replies
3,001 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

The most typical way for using of DFLASH is EEPROM emulation. DFlash use always smallest block with highest endurance, sometimes reaction to ECC failure is handled differently than with code flash. That’s why it is well suited for running EEPROM emulation driver above this memory space. Otherwise it just may be used for storing non-volatile data (in comparison to code flash, it has higher endurance, but lower data retention).

0 Kudos
Reply
2,920 Views
varunbharti
Contributor III

Hi  @davidtosenovjan ,

Thank you again for your response, 

Can you please share a sample code on how to use DFLASH to emulate EEPROM?

Can we do byte-wise write and erase in DFLASH?

0 Kudos
Reply
2,909 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

According configuration lower data granularity is 4 bytes.

 

EEPROM emulation drivers that are part of RTD driver package (FEE driver):

https://www.nxp.com/design/design-center/software/automotive-software-and-tools/real-time-drivers-rt...

An example for this is called Fee_Example_S32K3..

2,884 Views
varunbharti
Contributor III
Thankyou!!!
0 Kudos
Reply
2,992 Views
varunbharti
Contributor III
Thankyou for your quick response
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1854466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1854466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20wanted%20to%20inquire%20about%20the%20inclusion%20of%20separate%20%3CSTRONG%3EData%20Flash%20Memory%3C%2FSTRONG%3E%20alongside%20%3CSTRONG%3ECode%20Flash%20Memory%3C%2FSTRONG%3E%20in%20the%20S32K3xx%20microcontrollers.%3C%2FP%3E%3CP%3ECould%20you%20kindly%20provide%20some%20insights%20into%20why%20separate%20Data%20Flash%20memory%20is%20required%20in%20the%20design%20choice%3F%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%20and%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1858558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1858558%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThankyou!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1858328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1858328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAccording%20configuration%20lower%20data%20granularity%20is%204%20bytes.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EEEPROM%20emulation%20drivers%20that%20are%20part%20of%20RTD%20driver%20package%20(FEE%20driver)%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fautomotive-software-and-tools%2Freal-time-drivers-rtd%3AAUTOMOTIVE-RTD%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fautomotive-software-and-tools%2Freal-time-drivers-rtd%3AAUTOMOTIVE-RTD%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EAn%20example%20for%20this%20is%20called%20Fee_Example_S32K3..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1858178%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1858178%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52613%22%20target%3D%22_blank%22%3E%40davidtosenovjan%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%20again%20for%20your%20response%2C%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20share%20a%20sample%20code%20on%20how%20to%20use%20DFLASH%20to%20emulate%20EEPROM%3F%3C%2FP%3E%3CP%3ECan%20we%20do%20byte-wise%20write%20and%20erase%20in%20DFLASH%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1855880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1855880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThankyou%20for%20your%20quick%20response%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1855654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32k3xx%20%3A%20Query%20on%20Embedded%20Flash%20Memory%20Blocks%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1855654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20most%20typical%20way%20for%20using%20of%20DFLASH%20is%20EEPROM%20emulation.%20DFlash%20use%20always%20smallest%20block%20with%20highest%20endurance%2C%20sometimes%20reaction%20to%20ECC%20failure%20is%20handled%20differently%20than%20with%20code%20flash.%20That%E2%80%99s%20why%20it%20is%20well%20suited%20for%20running%20EEPROM%20emulation%20driver%20above%20this%20memory%20space.%20Otherwise%20it%20just%20may%20be%20used%20for%20storing%20non-volatile%20data%20(in%20comparison%20to%20code%20flash%2C%20it%20has%20higher%20endurance%2C%20but%20lower%20data%20retention).%3C%2FP%3E%3C%2FLINGO-BODY%3E