EmbeddedRelated.com
Forums

Help doing debug on AT91SAM9260 + OpenOCD

Started by JPCasainho December 12, 2008
Hello :-)

I am working on the Free/Open Digital Audio Player with name Rockbox
Player:
http://www.rockbox.org/twiki/bin/view/Main/RockboxPlayer

We are using the Olimex SAM9-L9260 development board. I bought the
Olimex arm-usb-tiny JTAG hardware to make debug...

I would like to get help in making debug, mainly get a script for
OpenOCD, to download code to SDRAM and debug it. I am using Eclipse
IDE on GNU/Linux Ubuntu, I would like to debug using this tools.

Until now I just got the arm-usb-tiny JTAG detected and working with
the script arm-usb-tiny.cfg, here:
http://code.google.com/p/rockboxplayer/source/browse/#svn/trunk/tools/jtag_openocd

I had read a few tutorials about using this tools to debug ARM,
however I couldn't find a working scripts and examples for this
development board / MCU. I would appreciate any help, even if not to
use this tools, as every information can help me, helping our project.

And we are looking for others developers... If there is someone
interested, just contact us or me.

Thanks in advance.
Hello :-)

I am answering to my own question since I resolved it, and I hope to
help someone with the same question :-) here is a screenshot of a debug
on Eclipse:
http://farm4.static.flickr.com/3163/3104368953_2744f24f18_o.png

HowTo Install OpenOCD:
Actual scripts works with OpenOCD revision 732, so we get and build that
revision:

svn checkout -r 732 svn://svn.berlios.de/openocd/trunk

We need to enable "ft2232_libftdi" because JTAG ARM-USB-TINY uses it. We
may need to install libftdi using apt-get.

cd trunk
./bootstrap
./configure --enable-ft2232_libftdi
make
make install

OpenOCD is now installed and finally we can run it doing:

openocd -f interface/arm-usb-tiny.cfg -f target/at91sam9260.cfg

More information here:
http://code.google.com/p/rockboxplayer/source/browse/#svn/trunk/tools/jtag_openocd/at91sam9260-openocd_r732

http://code.google.com/p/rockboxplayer/wiki/HowToDebugUsingJtag

http://code.google.com/p/rockboxplayer/wiki/DevelopmentEnvironmentSetup

Qui, 2008-12-11 às 20:38 +0000, JPCasainho escreveu:
> Hello :-)
>
> I am working on the Free/Open Digital Audio Player with name Rockbox
> Player:
> http://www.rockbox.org/twiki/bin/view/Main/RockboxPlayer
>
> We are using the Olimex SAM9-L9260 development board. I bought the
> Olimex arm-usb-tiny JTAG hardware to make debug...
>
> I would like to get help in making debug, mainly get a script for
> OpenOCD, to download code to SDRAM and debug it. I am using Eclipse
> IDE on GNU/Linux Ubuntu, I would like to debug using this tools.
>
> Until now I just got the arm-usb-tiny JTAG detected and working with
> the script arm-usb-tiny.cfg, here:
> http://code.google.com/p/rockboxplayer/source/browse/#svn/trunk/tools/jtag_openocd
>
> I had read a few tutorials about using this tools to debug ARM,
> however I couldn't find a working scripts and examples for this
> development board / MCU. I would appreciate any help, even if not to
> use this tools, as every information can help me, helping our project.
>
> And we are looking for others developers... If there is someone
> interested, just contact us or me.
>
> Thanks in advance.
>

Hai Casainho,

Iam TVR and Iam working as a Software Team Lead in a WiFi based
company.Linux has been my area of interest for long.I have a SAM(-L9260
board which is what I think you guys are using for the rockbox player.As you
mentioned in the mail you require developers.I would like to be part of the
team developing the rockbox player.
Awaiting your reply eagerly,
Regards
T.V.R.Prasad
On 12/12/08, JPCasainho wrote:
>
> Hello :-)
>
> I am working on the Free/Open Digital Audio Player with name Rockbox
> Player:
> http://www.rockbox.org/twiki/bin/view/Main/RockboxPlayer
>
> We are using the Olimex SAM9-L9260 development board. I bought the
> Olimex arm-usb-tiny JTAG hardware to make debug...
>
> I would like to get help in making debug, mainly get a script for
> OpenOCD, to download code to SDRAM and debug it. I am using Eclipse
> IDE on GNU/Linux Ubuntu, I would like to debug using this tools.
>
> Until now I just got the arm-usb-tiny JTAG detected and working with
> the script arm-usb-tiny.cfg, here:
>
> http://code.google.com/p/rockboxplayer/source/browse/#svn/trunk/tools/jtag_openocd
>
> I had read a few tutorials about using this tools to debug ARM,
> however I couldn't find a working scripts and examples for this
> development board / MCU. I would appreciate any help, even if not to
> use this tools, as every information can help me, helping our project.
>
> And we are looking for others developers... If there is someone
> interested, just contact us or me.
>
> Thanks in advance.
>