IAP Flash Routines

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IAP Flash Routines

1,318 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Sushamshu on Mon Apr 20 23:29:10 MST 2015
Hello All,

I have two questions regarding IAP Flash Routines

1.What is the typical program and erase time for 4K and 32K sector of LPC using IAP routines?

2.Do the IAP routines also verify the programmed flash sector or should it be taken care by the boot loader?  If it has to be taken care by boot loader then, then is the routine for reading back the flash sector available or do we have to develop our own.



Labels (1)
0 Kudos
Reply
3 Replies

1,018 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Apr 22 00:32:49 MST 2015
1. ROM is ROM. It cannot be changed.
The normal way of storing persistent data is to choose an unused Flash sector and store your data in there.

2. You must erase before writing. Writing to flash actually just 'writes' the zeros. Once it is zero, you cannot overwrite it with a one - you must erase to return it to its default (one) state.
0 Kudos
Reply

1,018 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Sushamshu on Tue Apr 21 21:36:05 MST 2015
Hi mc,

Thank you for your answers. I need two more clarifications.

1. As LPC1768 (the controller that I am using) doesn't have NVRAM or EPROM (permanent memory except for Flash) can I use 8kB Boot ROM to store some values during runtime. Is it possible to access Boot ROM?

2. What is the effect/ behaviour on over writing default value to the controllers Flash, will it still write 0xFF on the default value of the Flash (0xFF) or returns error when this sort of write operation is performed.
0 Kudos
Reply

1,018 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Tue Apr 21 19:58:43 MST 2015
Hi Susham,
For erase/program timings please check page 56/89 in datasheet of LPC17xx which can be downloaded from
http://www.nxp.com/documents/data_sheet/LPC1769_68_67_66_65_64_63.pdf

You can use compare command available in IAP command set to verify programmed data.
Read page 645 of LPC17xx UM which is at http://www.nxp.com/documents/user_manual/UM10360.pdf

0 Kudos
Reply