Hi ,
I have some data recived in .hex format file from serial port and i need to store this data in flash permenantly and i will access this data when ever required.
Please guide me How can i find out where the sectors are free to write permenantly? How to write data permenantly to flash ? How can i access it?
My LPC utility is 2138 with 512kb memory.
regards reddy
Also, how do we ensure that tools like LPC2000 don’t erase this part of flash if somebody is doing a download?
if you setup uVision to "erase sectors" (see "Flash Download Setup" menu), only the sector required for your application will be clear during download. so it the ROM memory regions of differnet binary do not overlap - nothing can go wrong (this is ow a bootloader can be flashed without damaging the application, for example).
How to write data permenantly to flash ?
read the chapter about IAP in your device's user manual.
" if you setup uVision to "erase sectors" (see "Flash Download Setup" menu), only the sector required for your application will be clear during download. so it the ROM memory regions of differnet binary do not overlap - nothing can go wrong (this is ow a bootloader can be flashed without damaging the application, for example)."
apart from configuring the "erase sectors" is there any other options to over come this on LPC2000
read the chapter about IAP in your device's user manual. my manual talks about the normal storage to flash but i am looking for permenant storage of data in flash which may grow...in size after a certain peroid and also which sectors will be good for doing this operations
Michael what i understood from your last reply is
I need to store data in flash with known sectors and config the erase sectors without this(permenant data storage) sectors. for example 0-12 sectors contains app and 13-14 will be my permenant data and this should solve my permenant storage problem.
If i am wrong please correct me
Please read IAP (In application programming) chapter programming carefully.after that see sample code of IAP,many code are avalable on web. dont go in another loop.
regards Shyam T. pune India
after reading to IAP commands then only i came up with questions and please go through my last reply to michael one's.
Hi, I am not knowing much abt IAP.but I have some code of IAP. give me your mail ID i will send that code.
regards shyam T