beaglebone: uboot debug in ccs5 through jtag ( XDS100v2 USB Emulato).

449 views
Skip to first unread message

aniket jesu

unread,
Jul 5, 2013, 9:36:44 AM7/5/13
to beagl...@googlegroups.com

Hi all,
I have a beaglebone and I would like to debug u-boot on it, in ccs5. as I know BB has in-built jtag,
I can connect the board through Texas Instruments XDS100v2 USB Emulator in ccs5 for debug purpose!!
Well, I followed this link to set the target configuration>>>


http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#Debugging_on_BeagleBone_board_using_CCSv5

as in the link I set the configuration then I did "launch the selected configuration", then in debug window,
right click on cortexA8 to say "connect target", I got this>>

==================================================================================

CortxA8: Output: ****  AM335x Beaglebone Initialization is in progress ..........
CortxA8: Output: ****  AM335x ALL PLL Config for OPP == OPP100 is in progress .........
CortxA8: Output: Input Clock Read from SYSBOOT[15:14]:  24MHz
CortxA8: Output: ****  Going to Bypass...
CortxA8: Output: ****  Bypassed, changing values...
CortxA8: Output: ****  Locking ARM PLL
CortxA8: Output: ****  Core Bypassed
CortxA8: Output: ****  Now locking Core...
CortxA8: Output: ****  Core locked
CortxA8: Output: ****  DDR DPLL Bypassed
CortxA8: Output: ****  DDR DPLL Locked
CortxA8: Output: ****  PER DPLL Bypassed
CortxA8: Output: ****  PER DPLL Locked
CortxA8: Output: ****  DISP PLL Config is in progress ..........
CortxA8: Output: ****  DISP PLL Config is DONE ..........
CortxA8: Output: ****  AM335x ALL ADPLL Config for OPP == OPP100 is Done .........
CortxA8: Output: ****  AM335x DDR2 EMIF and PHY configuration is in progress...
CortxA8: Output: EMIF PRCM is in progress .......
CortxA8: Output: EMIF PRCM Done
CortxA8: Output: DDR PHY Configuration in progress
CortxA8: Output: Waiting for VTP Ready .......
CortxA8: Output: VTP is Ready!
CortxA8: Output: DDR PHY CMD0 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD1 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD2 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA0 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA1 Register configuration is in progress .......
CortxA8: Output: Setting IO control registers.......
CortxA8: Output: EMIF Timing register configuration is in progress .......
CortxA8: Output: EMIF Timing register configuration is done .......
CortxA8: Output: DDR PHY Configuration done
CortxA8: Output: ****  AM335x Beaglebone Initialization is Done ******************


====================================================================================



so, I guess this is working!! but when I followed this video for reference the to debug uboot>>

http://software-dl.ti.com/sdo/sdo_apps_public_sw/CCSv5/Demos/u-boot_debug_autonomous/u-boot_debug_autonomous.html


as I do, complete configuration for target configuration and say debug I get this error>>>

---------------------------------------------------------------------------------------

Error connecting to the target:
(Error -1266 @ 0x0)
Device is held in reset. Take the device out of reset, and retry the operation.


---------------------------------------------------------------------------------------


am a newbie, need some help!!
 and I'll be glad if anyone suggests me any link or reference which will explain me
complete debug process for begalebone in ccs5.


thanks,
aniket jesu

Tom Rini

unread,
Jul 7, 2013, 8:57:34 AM7/7/13
to beagl...@googlegroups.com
On Friday, July 5, 2013 9:36:44 AM UTC-4, aniket jesu wrote:

Hi all,
I have a beaglebone and I would like to debug u-boot on it, in ccs5. as I know BB has in-built jtag,
I can connect the board through Texas Instruments XDS100v2 USB Emulator in ccs5 for debug purpose!!
Well, I followed this link to set the target configuration>>>


http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Environment_Setup#Debugging_on_BeagleBone_board_using_CCSv5

 I would take a look at http://processors.wiki.ti.com/index.php/U-boot_Debug_in_CCSv5 and the link it has to http://processors.wiki.ti.com/index.php/OMAP_and_Sitara_CCS_support for an AM335x GEL file.  It's been a long while since I used this all together, but I updated the first link there with instructions for handling relocation in U-Boot, on my Beaglebone White, and nothing too important should have changed since then for debugging BBB.

--
Tom

aniket jesu

unread,
Jul 9, 2013, 8:31:39 AM7/9/13
to beagl...@googlegroups.com
thanks for the reply tom

but still stuck in the same error on the other hand I tried to use gdb with open ocd, even stuck thr with some errors!!
have u worked with open ocd and gdb, need some help thr also..

thanks,
aniket

aniket jesu

unread,
Jul 9, 2013, 9:16:56 AM7/9/13
to beagl...@googlegroups.com
hi tom,
see this for helping me on gdb with open ocd to remote debug a program on beaglebone
https://groups.google.com/forum/#!category-topic/beagleboard/support/advanced/beaglebone/hardware/angstrom/4w0YNXJMba8

I hope u can help me.

thanks,
aniket
Reply all
Reply to author
Forward
0 new messages