Other Parts Discussed in Thread: CCSTUDIO
Tool/software: Code Composer Studio
Hello,
I'm writing to get information about SPL/Uboot debugging using CCSv7 on AM5728 evaluation board Rev A3. I'm using CCSv7.0.0.00043 (on Linux Ubuntu 16.04) and latest version of SDK (03.03.00.04). I've performed all steps in Sitara Linux Training - uboot_linux_debug_with_ccsv5 documentation http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5 and firstly I'm trying to debug SPL code so I've performed following steps:
1- On CCSv7 as File->New->Project->C/C++->Makefile Project with Existing Code for Uboot source project
2- Build and Compile Uboot source by using CCSv7 Make File Target in detail https://training.ti.com/linux-board-porting-series-module-6-building-u-boot-ccs or using command
export PATH=/home/alicanlinux/ti-processor-sdk-linux-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am57xx_evm_config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
3- Setup target configuration with "Blackhawk XDS560v2-USB System Trace Emulator" and Board or Device: AM5728.
4- Launch Configuration and connect to the CortexA15_0 target.
5- CPU Reset (SW) to CortexA15_0 target for changing the ARM core mode from THUMB-2 to ARM or Core Registers -> CPSR register list change the T register from 1 to 0
6- Load Memory with (Uboot source dir)/spl/u-boot-spl.bin, start address 0x40300000 (CONFIG_SPL_TEXT_BASE value in u-boot-spl.cfg) and type-size 32bits
7- Load symbols from (Uboot source dir)/spl/u-boot-spl (code and data offset left empty)
8- Set Program Counter Register(PC) to address 0x40300000
After performing these steps, I'm able to create breakpoints successfully (Breakpoint and Hardware Breakpoint) using Disassembly view or New Breakpoint button on Code Composer Studio. But when I define Hardware Breakpoint in s_init(), watchdog_init() or early_system_init() functions on /(Uboot source dir)/arch/arm/cpu/armv7/omap-common/hwinit-common.c or on another source files, hardware breakpoints seem not working (won't stop the CPU).
Could you suggest any way to solve the problem?
Best regards
Alican