Hallo Luis,
thank you for your request.
First I copied the header files in the folder of my project headers.
Than I added the .c files to my project. I took the code of the NormalDemo.c in my main program.
I can compile my project, but it will not work.
The programcounter jumps in the kinetis_sysinit.c voit isr_default(void)
How do I have to change the .lcf-file.
Do I have to change the length of m_text e.g. in LENGTH = 0x00040000 (256K) instead of 0x00080000 (512K).
So I think I have 256K for D-Flash.
Now I think I can take the NormalDemo.c code of the K40 for my K60N512 project because I have the same P and D Flash as ihe K40X256. Is that correct ?
In the demo project they took the program code in the RAM. I want to lokate it in the flash. Do I have to change something else.
I only need the code for erase, write and read the D-Flash.
Hope you can help
Thomas