ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0x0 (TAP Command : 2)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaSt_4567191
Level 4
Level 4
10 likes given 5 likes given First like received

Here I am again

the issue have been solved some days ago but moving on it reappeared ... very frustrating

Unfortunately I cannot reopen a closed discussion so here I am

The design is a CX3 configuration design, the hardware is based on the denabola board

I did not touch the clock configration just after main entry

According to

: Fix “Bad JTAG communication: Write to IR: Expected 0x1, got 0x0 (TAP Command : 2) @ Off 0x5” Error...

I added

monitor memU32 0xE0052000 = 0x00080015

monitor sleep 1000

in the startup tab of the run commands text box. Does not work ....

monitor memU32 0xE0052000 = 0x00080014

monitor sleep 1000

does not work as well

0 Likes
1 Solution

Hello,

The code snippet that you have added in response:2 checks for the event CX3_USB_SUSP_EVENT_FLAG.

This event is set when the UVC driver sends a request for the device to enter suspend/ low power mode to save power since there is no activity.

The code snippet handles this event and puts the CX3 to suspend mode completely by using CyU3PSysEnterSuspendMode() API until there is a wakeup event.

During this time, the J-TAG can't communicate with CX3 CPU as it is in suspend mode and that's the reason for the error that you see.


The workaround for this would be to comment out the line or comment out the entire if (eventFlag & CX3_USB_SUSP_EVENT_FLAG) condition to avoid the handling of any suspend mode requests from host:

// status = CyU3PSysEnterSuspendMode (CY_U3P_SYS_USB_BUS_ACTVTY_WAKEUP_SRC, 0, &wakeReason);

This will prevent the device from going into low power mode even if the hosts requests for it and so, the J-TAG can communicate with CX3.

Regards,

Yashwant

View solution in original post

5 Replies