I'm trying to read the flash memory of the KL25Z. I can program it correctly, I can view the information programed with the jlink, but i don't know how read it from the main program.
I'm using KSDK V2
The program flash in the Kinetis processor is memory mapped so the simplest method of reading from it is to just use pointers.For example, to read 64 bytes from the addres 0x8000 do:
unsigned char mybuffer;unsigned char *ptrFlash = (unsigned char *)0x8000;memcpy(mybuffer, ptrFlash, sizeof(mybuffer));
MarkKinetis for professionals: http://www.utasker.com/kinetis.html
Retrieving data ...