4 Replies Latest reply on May 21, 2019 5:20 AM by KandlaguntaR_36

    FX3 JTAG SEGGER

    gean_3054931

      Hello,

      I am using JLINK BASE with cypress EZ USB sdk .I am getting ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0x7 (TAP Command : 15) @ Off 0x1157.

      why this eeror ?I am not able to do debug the program.

      for some application,it will not thrown ERROR: Bad JTAG communication: Write to IR: Expected 0x1, got 0x7 (TAP Command : 15) @ Off 0x1157.

      but it will show starting target cpu..(as shown in the attached snap).after this,there is further debug(there is no further stepover option).help me.

      thank you.

        • 1. Re: FX3 JTAG SEGGER
          gean_3054931

          Hello,

          I am not able to do debug the program.stepover and stepin options in fx3 sdk is disabling at the point  CyU3PKernelEntry ();

          help me regarding this.

          thank you

          • 2. Re: FX3 JTAG SEGGER
            KandlaguntaR_36

            Hello,

             

            CyU3PKernelEntry () is a non return call, you are not supposed to do Step into it.

             

            Can you please put a break point just before connectstate API and run? Do not do step over and step into anywhere.

            • 3. Re: FX3 JTAG SEGGER
              gean_3054931

              Hello,

              CyU3PKernelEntry () is a non return call, you are not supposed to do Step into it.

              -> I am not doing stepinto,i am doing stepover

               

              Can you please put a break point just before connectstate API and run?

              its works if i put break point just before connectstate API.

              what you mean by run??i have to do further stepover.

              please tell me how to run fx3 segger after putting break point at connectstate API.

               

              thank you.

               

              • 4. Re: FX3 JTAG SEGGER
                KandlaguntaR_36

                Please set the following breakpoints in the firmware and do stepover at KernelEntry

                 

                By default the debugger stops at Main.

                 

                1. Put a break point at application define function (CyFxApplicationDefine)

                2. Otherone at Thread_Entry function (for example - UVCAppThread_Entry in UVC An75779 firmware )

                 

                After this, if you do stepover at kernelentry, it will take you to Application Define. Then it will take you to Thread_Entry.

                Hope this solves your problem.

                 

                I have tested at my end. It is working fine.