Hi,
I used OpenOCD to program the LPC2292 internal flash. And I met a problem. I used the command flash info 0 to get the information about the flash, and it listed 18 sectors, from sector 0 to sector 17, which is exactly the same as the datasheet. However, when I tried to erase all the sectors with command flash erase 0 0 17, it always said:" invalid sector number." Then I changed to flash erase 0 0 16, and it was correct. What’s problem?
And I studied the source code(Re98), which I am using, in which it sets the sector number to be 18. Therefore it seems there’s no mistake with the source code.
Here’s my flash configuration.
flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 11059 calc_checksum
Regards,
Kevin