2011-06-15 10:31:18     Status of IDLE instructions via gdbproxy?

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2011-06-15 10:31:18     Status of IDLE instructions via gdbproxy?

Peter Budny (UNITED STATES)

Message: 101286   

 

I am debugging an RTOS which uses the IDLE instruction both for waiting on the PLL to stabilize and to idle the CPU when there are no tasks to run, and I read elsewhere (http://www.section5.ch/dsp/bfemu/doc/html/) that there are problem with the IDLE instruction.

 

When I run in gdb via gdbproxy, the IDLE instruction hangs indefinitely, whether I single-step through it or just use "continue". This is production code that works under VDSP and when flashed onto the hardware, but it's possible that GCC is generating subtly different code... or it could just be gdbproxy's fault, as the other page said.

 

Any help is appreciated.

QuoteReplyEditDelete

 

 

2011-06-17 02:10:43     Re: Status of IDLE instructions via gdbproxy?

Mike Frysinger (UNITED STATES)

Message: 101333   

 

did you configure SIC_IWR ?  i just tested single stepping over IDLE in the u-boot code (which programs the PLL) and it seemed to work fine.

 

what ICE are you using exactly ?  and what version of software ?

QuoteReplyEditDelete

 

 

2011-06-20 09:45:18     Re: Status of IDLE instructions via gdbproxy?

Peter Budny (UNITED STATES)

Message: 101481   

 

Yes, SIC_IWR0 gets configured to 0x1 (only accept wake from PLL, if I've read the docs right), followed by PLL lock count.

 

I mentioned this in the other thread as well, but it's a custom board with a FT2232HL. Latest versions of toolchain from SVN... gdbproxy 0.7.2, urjtag 0.10 #5476.

Attachments

    Outcomes