EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0x7

Started by Adnan August 3, 2009
Dear senior members,

I am new bie to ARM7. I have two similar devices having at91sam7s128 controller on it. I have the firmware, code written in 4.4 version of IAR. Intially it was progrmming fine. I tried to write my own code and in that process i tried to run the 5.3 version IAR example on the device and it was working also. The 4.4 code was not migrating to 5.3 so i replaced the 5.3 example startup file with 4.4 file and tried to program the controller with jlink.

Since than ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0x7 (TAP Command : 2) @ Off 0x5.

I comming and i am unable to program the device again. Plz guys it is very serious issue for me . If some one can please assist me how to remove this error. Please help.

Regards
Dani

On Mon, 03 Aug 2009 16:05:14 -0000
"Adnan" wrote:
> Since than ERROR: Bad JTAG communication: Write to IR: Expected 0x1,
> got 0x7 (TAP Command : 2) @ Off 0x5.

This is the sort of thing I get when I have code that's running with
interrupts, or something else that the SAM-ICE device doesn't disable,
and I attempt to program the device.

When in doubt: Disable boot options (usually via jumpers) 'til you can
get back to just the "ROM Boot" prompt on the debug console when you
power up.

Dan
Try reinstalling JTAG driver.. That helped me with this kind of a problem.

Best,
Bekir
The device was loosing the power some how. I checked it and when insured the power is supplying continuesly while flashing the controller the error removed. Thanks for the guidence.

regards
Dani.

The 2024 Embedded Online Conference