I am using ULINK to debug the LPC2132 board. They work well for some days. But now a problem appeared. Everytime I want to download code to FLASH, always get"Could not stop ARM device, please check your JTAG cable?" But JTAG can be detect on Option for device. I do not know what is wrong? Thanks in advance for any idea.
I just changed to another LPC2132 board, it works well. So it means something worong with trouble board instead of ULINK. The 2132 can be programmed by ISP and can run program when power on. IS the 2132 JTAG port damaged? I donot have idea what action cause it damage. Anyone has experience about it? thanks
have no experience with "your board" but have blown a JTAG or two by 1) hotplugging (takes many 'tries' to blow it that way) 2) missing ground between the two 'ends' Erik
And I probe every JTAG pin signal.Only RCLK has nothing happen. RCLK is necessary? thanks
JTAG will not be blown. It is just that the JTAG port can be disabled by "random" instructions in the FLASH for instance after a corrupt FLASH download... :-$
see http://www.keil.com/support/docs/3001.htm
Mess around a bit with the BOOT pins and resetting the device and it will work again.
But for LPC2132 device, I donot know how to enable boot pin...thanks for any more ideas...
Disregard my previous answer.
There are however some remarks in the LPC2132 datasheet about the JTAG port. Did you follow them?
yes, I think I followed them. Now for the same circuit, one board has this problem and another one can work well with jtag. It looks hard to replace a LPC2132 and I am wondering from where can I buy and get it quickly in canada?
The following article may help:
http://www.keil.com/support/docs/2993.htm
I get the same error using the Keil Eval board for ST ARM9. It started when I changed the BBADR and NBBADR in the STR91x.s startup file. However after I changed them back, the error was still there.
As suggested by other users (for ARM7) I lowered the Max JTAG Clock to the minimum 5kHz and selected Use Reset at Startup. A reboot did not help either.
The JTAG is getting 3V and there is activity on all JTAG pins when attempting to Download to Flash.
I don't think this is a problem with regards to enabling/disabling the JTAG as there is activity on those pins.
Does anyone have any insight?
Thanks, KK
I found the solution! http://www.keil.com/support/docs/3215.htm
The 0.5s to 1.5s is a bit tricky.
But why do I get this error in the first place?
Thanks KK, and did you try it and succeed? I tried many times and always failed. Sigh...
I had the same problem when i got some new 2138's (with them all) and my old one's, based upon 2132 worked fine. I've tried to change max. JTAG clock to 500kHz and it works. And then i changed i back again and it still works. I don't now the reason for this.
Yes originally the method I quoted earlier worked for me. However the problem has come back and I can't fix it. I'll have to take a look at the JTAG disabling thing...