Hi,
I am attempting to debug U-Boot on the Beaglebone Black(AM335x) with CCS in Windows using the following tutorial as a guide and have encountered an issue.
processors.wiki.ti.com/.../Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5
My setup is using Virtual Box to host a Linux environment to access the Linux EZ SDK.
Host OS: Windows 7 64
Code Composer Studio Version in Windows : 6.0.1
XDS100v2 USB JTAG Emulator
Guest OS
Virtual Box: 4.3.20
Virttual OS: Ubuntu 12.04
TI Linux EZ SDK : 7.00.00.00 extracted to /home/sitara/ti-sdk-am335x-evm-07.00.00.00
First in the Linux environment I build U-Boot with the following steps.
cd /home/sitara/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boot-2013.10-ti2013.12.01/ export PATH=$PATH:/home/sitara/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_config make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
I copy the source to the Windows Host OS to C:\ti\u-boot-2013.10-ti2013.12.01
Then in CCS I create a project using the C/C++ Makefile Project with Existing Code for the U-Boot source.
Created a Target Configuration with connection set to Texas Instrument XDS100v2 USB Debug Probe, and the Board set to BeagleBone_Black and then launched the new Target Configuration.
Connected to CortxA8, then loaded the u-boot-spl.bin as Binary for the File Type to Start Address of 0x402F0400. Then Run->Load->Load Symbols.. to load u-boot-spl file.
At this point CCS indicates it cannot fin the file at "/home/sitara/ti-sdk-am335x-evm-07.00.00.00/board-support/u-boot-2013.10-ti2013.12.01/arch/arm/cpu/armv7/start.S", I click the Locate File.. button and select C:\ti\u-boot-2013.10-ti2013.12.01\arch\arm\cpu\armv7\ as the Source Folder.
I can now see the source for the start.S and I can set Hardware Breapoints in the start.S assembly code.
Now when I open the source file at C:\ti\u-boot-2013.10-ti2013.12.01\board\ti\am335x\board.c and attempt to set a Hardware Breakpoint in the am33x_spl_board_init function, they always end up disabled. No matter what source file I attempt to set breakpoints in they are always disabled.
If I select Resume, I can verify I halt on the breakpoints in the start.S code, but I cannot trigger any other breakpoints.
I have tried this same procedure within the Linux VM with CCS running and I can properly set breakpoints anywhere in the source however performance with the XDS100v2 emulator is too slow to be usable.
My questions is how do I associate the source file directory to the symbol file I loaded?
Thanks,
Sean