UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor kpit
Visitor
1,870 Views
Registered: ‎02-22-2017

XSDK Hangs in while debugging when breakpoint is placed in IRQhandler and IRQhandler contains an logical or arithmetic instruction

I am using XSDK 2016.4 and QEMU and the platform is ZCU102. OS is Ubuntu 14.04

 

I am trying to extract the peripheral number and perform some other tasks in the IRQ handler.

 

IRQHandler:   

  stmdb sp!,{R0-R3,R12,lr}        /* state save from compiled code*/
  ldr     r1,=0xf900100C
  ldr     r0,[r1]
  and   r0, r0, #0x3FF     /* Get the peripheral number */

  ...........
  ldmia    sp!,{R0-R3,R12,lr}        /* state restore from compiled code */
  subs    pc, lr, #4   

 

Now if I place a breakpoint in this handler, the SDK hangs as soon as the core reaches the handler.

If now I comment the and instruction, I can perform single stepping in the IRQHandler. The problem persists if instead of and instruction I use any other logical or arithmetic instruction (eg. lsl, orr, add). 

 

Sometimes the entire PC hangs.

 

Is this a known issue? What do I do?

0 Kudos