Impossible to communicate after flashing

Hi all,

I’m able to flash my LPC2119 based board with openOCD and JTAGkey-tiny from Amontec. Now my problem is that once flashed, I’m not able to communicate again with the board using the JTAG. The only solution that I found for the moment is to erase the flash using UART1 with Philips Flash utility.

Is there another solution or something obvious that I don’t know?

Thanks for your help.

Yann

Please make sure that your code doesn’t change the PINSEL register that controls the JTAG pins. If you switch these pins to GPIO you wont be able to use the JTAG interface.

Setting the CRP magic at address 0x1fc (iirc) also disables the JTAG port, so make sure this is not set.

Regards,

Dominic

Thanks for your answer. The code don’t change the JTAG pin functions and I didn’t use the magic number at 0x1fc.

In my code at some places for doing critical parts, I disable and then renable the interrupts. Does OpenOCD needs interrupts to communicate through JTAG?