Author Topic: Can I use RDI Interface Debugger with C::B?  (Read 10999 times)

alterwood

  • Guest
Can I use RDI Interface Debugger with C::B?
« on: December 19, 2009, 02:49:05 pm »
Hi  everyone, I'm a Chinese college student , I'm studying in ARM development , at the same time, I'm a newbie to CodeBlocks.

Now, I'm using IAR and ADS development suit. But if I want to develop bootloader (such as U-Boot) or Linux , I must use  Gcc ARM Compiler, and I found the CodeBlocks can make it easier . :D

I met a problem when I tried to Debug my ARM Target Board with C::B by JTAG . My JTAG Debugger is J-Link(Made by SEGGER) , it can work under RDI Protocols , But I can't find that Interface in C::B . So , How can I use that in C::B? If I can't , what can I use to instead ? Thank you!
« Last Edit: December 19, 2009, 03:12:58 pm by alterwood »

Offline martind

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: Can I use RDI Interface Debugger with C::B?
« Reply #1 on: December 26, 2009, 08:19:07 pm »
Hi Alterwood,

There is no direct embedded (including RDI) debug support on CodeBlocks. Instead of using RDI, you could do it this way...

OpenOCD supports the Segger JLink.. albeit I don't know how well.

So you need to run OpenOCD with the correct script that tells it to use JLink interface, run it and listen to GDB connection requests on say port 2000.

Then in CodeBlocks, then in project/target options, go to debugger, and specify remote connection to localhost port 2000.

Martin.