Hi
I am downloading my application using LPC2000 v2.2.1 on to lpc2138 board with flash 512k.And insted of deleting entire device(flash) i am selecting particular sectors to be deleted(for example 0-14)but it is not allowing me to do and it is throwing an error "cannot communicate with test board" and at the down it is displaying "lpc2000 flash erase failed".
Please suggest me how to solve this problem
Thanks Reddy
Do you have an ready protection enabled? I think individual sector erases will fail in such case, since it isn't allowed to read back the state of the individual sectors.
At least, I know that FlashMagic complains about adaptive sector erases with LPC23xx chips if they are protected.
Should of course be "read protection", not "ready protection" :)
I found out that read protection is enabled by monitoring serial port,when it send ISp command to erase individual sector the return value is 19(CODE_READ_PROTECTION_ENABLED),i am trying to unlock this through ISP unlock command using docklight which is not working,is there any option to unlock this through LPC utility instead of sending individual command from docklight.
I think you have to erase the full chip to clear the read-protect.
westermark i tried by erasing all sectors and then tried to erase individual sectors at that time individual sector erase works fine,but my requirement is to erase only application stored sectors from 0-14 sectors and remaining should remain same,please suggest me how can i acheive this
when i loaded jtag version application and try to delete the individual sectors it is working fine
what might be the differences and why it is working for that not for non-jtag version?
I expect the difference is that the JTAG interface will use IAP to erase sectors, while the serial interface uses the ISP monitor.
Remember that your application can read sectors even if you have read protection. The protection is there to stop the ISP interface from dumping information.
To get even higher protection levels, you must also kill the JTAG interface.
ok and now code read protection is enabled by programming the flash adress location 0x1fc(sector 0) with value 0x87654321.
Who writes this value to flash initially ? How do I re program to remove this one permenantly?