Content originally posted in LPCWare by Ex-Zero on Sat Mar 16 08:47:21 MST 2013
Quote: inspire
I mean the last end address is 0x0007 FFFF. The LPC1769 has 512 kB flash memory, so it has sectors 22 to 29, doesn't it?
My LPC1769 even has 30 sectors :eek:
Quote: inspire
You are right, the programm code shouldn't be overwritten by something else. But how can I figure out which flash memory regions are "safe"?
Look in your map file to see how much flash is used ;)
My programs are often < 480kB, so sector 29 (LPC1769) is my favorite to store my stuff in :)
It's also a good idea to do an IAP sector blank check before erasing / writing. Storing a pattern at the first bytes of your data sector helps you to see if (your) non blank sector has been used for something else. But usually no one touches sector 29, so it's a 'safe' sector :)