AnsweredAssumed Answered

Flash programming on MKL16z256,

Question asked by Jos Rennies on Oct 11, 2016
Latest reply on Oct 17, 2016 by Butcher

I need help on programming the internal flash of an MKL16z256 device. The idea is to store 1k bytes at the end of the flash memory. I am working in expert mode, so a piece of sample code on this or a guideline would be nice.

 

Here is what I have tested so far:

 

IFsh1_EraseSector( 0x20000);
IFsh1_SetBlockFlash(TX_buff,0x20000,32);
IFsh1_SetByteFlash(0x20000,'J');

 IFsh1_SetByteFlash(0x20001,'O');
IFsh1_SetByteFlash(0x20002,'S');
int k=0;

char b,bb;
for (k=0;k<3;k++){
   b=IFsh1_GetByteFlash(0x20000+k,&bb);
   AS1_SendChar(bb);
   delay_ms(100);
}

 

Thanks

Outcomes