Hi,
I am using CW 10.7. I need to store data in the internal flash. I am using FRDM-KL25Z128, I tried to do it as per this link :Store a variable in ROM/FLASH . But it didn't give me the expected result. I created a bareboard project of FRDM-KL25Z128. Please anybody help on this
Thanks,
Yadu
Hello Yadu,
On CW v10.7, the const data is stored in flash :
You also can checked it on the .map file :
If your project is not , you can send your project to me.
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
I have another problem in storing the value. I am storing a audio hex file as const uint16_t. But I couldn't store more than 5kb, it overflows when I did that or got to PE_DEBUGHAULT function. I am using frdm-kl25z, it has 128kb flash then why can't I store atleast 64kb value in it. please help...
Hi,
I've just tried to build the project with such a constant and at works fine on my side. Constant is allocated in FLASH and there is no overlap:
Stan
Hello ,
In your project not only the hex file saved in flash, you can check the .map file about
the actual memory used . Or you can also send your project to me , I help you check it.
BR
Alice
I am sorry to say, I don't know how to attach my project. Could you please tell me how to? :smileyhappy:
Hello ,
- About how to attach project :
BR
Alice
Hi Alice_Yang ,
Thank you very much for the reply. I forgot to declare the const char myArray[] = "Hello World" globally that is why I didn't got the expected output. Anyway thank you very much :smileyhappy: