FlexNVM data storage

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

FlexNVM data storage

661 Views
m_giraldi
Contributor II

#define DEF_VAR

.
.
.

#ifdef DEF_VAR
#define global
#else
#define global extern
#endif

//1===========================================================================
/*
*
* As I am stating below, I inform you that the data will be stored in Flash
* (I'm using the MKE15Z256VLL7 which has: 256K of Flash, 32K of SRAM,
* 32K of FlexNVM and 2K of FlexRam), how would it be for me to put the
* same data in FlexNVM?
*
* Would it also be possible to define in which FlexNVM region the data should be stored?
*
*/

global const char TextosDisp[62][3][17]
#ifdef DEF_VAR
={ {"","",""}, {"","",""}, ... {"","",""}}
#endif
;
//1==========================================================================
.
.
.
//2==========================================================================
/*
*
* Can I use this same data the way I use the data in Flash?
*
* When stored in Flash I use the data as:
*
*/
void TFT_String (int16_t x3, int16_t y3, const char *pointer, uint16_t color, uint16_t BackGrnd)
{
...
}
.
.
.
TFT_String (2, 14, TextosDisp[1][0], WHITE, BLACK);
//2==========================================================================

 

Thanks,

Marcel Giraldi

0 Kudos
1 Reply

638 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello m_giraldi

 

I suggest you to use the SDK, there you can find the necessary functions to use the FlexNVM. Also, in the SDK you can find an example that shows how to use the driver to operate the FlexNVM.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 Kudos