Hi all,
I'm using MKL17Z256VFM4 with KDS 3.0.0. I would like to know if there is a way to put default values in the flash user block at compile time.
For understanding, I would like to do like I do with CodeWarrior 6.x with the "@" directive, for example:
const uint EEDefault[2] @ 0xE000 = {
0x0001,
0x0002
}
In this way I'm sure that after downloaded the executable, in the address 0xE000 I have the value 0x0001, and so on.
Is it possibile to do stuff like this with KDS and MKL17Z in similar way? I know it's not possibile with MKE02Z, but these two micro are quite different, so maybe there is a way with MKL17Z?
It would be good, so I dont need to make my own init-flash for every project.
Thanks in advance!
Sandro
Hi Sandro,
Please take a look to the following document, it explains how to place code and data in specific ROM and RAM addresses:
Relocating Code and Data Using the KDS GCC Linker File for Kinetis
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Carlos,
thanks for the answer, I will take a look soon and let you know!
Thank you,
Best Regards,
Sandro