Get Error message "Bad JTAG communictaion: Write to IR: Expected 0x1, got 0xf (TAP Command : 2) @ Off 0x5

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Get Error message "Bad JTAG communictaion: Write to IR: Expected 0x1, got 0xf (TAP Command : 2) @ Off 0x5

    Hello,

    I am using the RDI Debug Interface (OEM JLINK) and Keil µVision development environment. With small example programms I can program the flash of my ADuC70xx and also can debug. But when I am using my large project I only can programm the flash, but when I want to debug I got the above error message. What could be the reason for this behaviour?



    regards

    Samuel
  • Hi Samuel,

    could you please be a bit more precisely, which ADuC device from the 70XX series your are using?
    Are you using the J-Link RDI flashloader or a flashloader from uVision?

    Do I understand you correctly?:
    1. You have tested flashing & debugging with a small sample project and everything works fine.
    2. When you are trying to use a more complex project, flashing still works, but debugging fails.

    I assume you have "run to main()" enabled, correct?
    If yes: Could you please disable the "run to main()" and check (by stepping through the application) at which point this error occurrs?
    As you say, another project works and flashing works on both projects, I do not think there is a general problem with J-Link + this ADuC device.

    Another question: If the device has been flashed with the more complex project, where debugging fails,
    is the J-Link commander (part of the J-Link software and documentation package) still able to connect to the device?


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.