MCB2140: HOW TO RE-ENABLE JTAG ON LPC21XX DEVICES
I used following low-level flash erase procedure to re-enables JTAG for the MCB2140 evaluation board.
1. Unplug power from the board. 2. Make sure jumpers J7, J9 and J10 are removed and jumper J1 is installed. 3. Make sure a standard DB9 serial cable is connected from your PC to COM0 on the board. 4. In Windows, start the HyperTerm program. 5. Set up the HyperTerm connection for 9600 Bits/Second, 8 Bit Data, No Parity, 1 Stop Bit, No Flow Control. 6. Apply power to the board. 7. On the board, press and hold the INT1 button, press and release the RST button, then release the INT1 button. 8. In HyperTerm, type the ? character. The word Synchronized displays. 9. Type Synchronized, then the Enter key. An OK displays. 10. Type 12000, then the Enter key. An OK displays. 11. Type U 23130, then the Enter key. A 0 displays. 12. Type P 0 26, then the Enter key. A 0 displays. 13. Type E 0 26, then the Enter key. A 0 displays.
But after typing P 0 26 and E 0 26 commands 0 must be displayed but in my case 7 is displayed but not 0.
Write me the solution please.
Error 7: Sector Number is invalid
Your are trying to erase/program sectors 0..26 which should work on LPC2148 (512kB Flash) . But it will fail on devices with smaller Flash like LPC2146/44/42/41.
Thank you very much. The end sector was 14. Anyways it is working now. Thanks once again