AnsweredAssumed Answered

STORING VARIABLES IN FLASH

Question asked by kathirkamu annakamu on Dec 29, 2016
Latest reply on Jan 2, 2017 by Kerry Zhou

Dear Sir,

I am using MK20DX128VLF5 microcontroller. I am using codewarrior v 10.6 and using GCC compiler. I have to store a group of variables and arrays in the FLASH. I have written a snippet such that I will give the starting address and ending address of the variables and store it in the flash memory. Now the problem comes.When i see the .Map file of this project, the variables stored in different memory locations.The variables are not stored in the corresponding order that I declared in the file. Is there a way that I could bring the memory locations to corresponding order. So i could use my snippet to store the variables in FLASH

 

Thanks 

A.Kathirkamu

Outcomes