Hi,
I am using AM5718 IDK EVM,and ti-processor-sdk-linux-am57xx-evm-05.03.00.07.
I am using CCS Version: 8.3.0.00009 in host PC Ubuntu Version 18.04.3 LTS.
I have successfully debugged MLO using CCS (load memory->spl/u-boot-spl.bin, load symbols->spl/u-boot-spl). I could set hardware breakpoints and step through different points in MLO code.
Now I'm facing difficulty in running U-boot through JTAG in CCS. No prints are coming in the terminal. The procedure that I followed is given below:
1. Load MLO in JTAG and run. Following prints come in terminal:
----------------------
U-Boot SPL 2018.01 (Dec 19 2019 - 10:38:18)
DRA722-GP ES2.0
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
-----------------------------------
2. After running MLO, Run->Load Program->u-boot was loaded. PC was automatically updated to 0x80800000. After clicking Run, no print comes in terminal.
3. Before clicking Run, I could set hardware breakpoint in common/board_f.c inside function:
void board_init_f(ulong boot_flags)
{
gd->flags = boot_flags;
...
}
This breakpoint is not reached. Have I put breakpoint in the correct function? Can you give me some initial functions in U-Boot (not MLO) where I can put breakpoints and study the code flow?
3. I then loaded u-boot.bin. Changed PC to 0x80800000. Clicked Run. No print comes in terminal.
One month before, I had got U-Boot running prints in terminal while following steps 1-3. I don't know why I am not getting it now.
After following CCS debug tutorials and various links in E2E support forum, U-boot was build as given below:
---------------------------------------
1. Added debug flags in many different config.mk files in U-boot source as:
------------------
DBGFLAGS = -g2 -gdwarf-2
AFLAGS_DEBUG = -Wa,-gdwarf2
OPTFLAGS = -O1
----------------------------
2. Added CONFIG_ARMV7_LPAE=n in the configs/am57xx_evm_defconfig file.
3. Added CONFIG_OF_EMBED=y in the configs/am57xx_evm_defconfig file.
4. The option "Enable debug information for tools" under General setup → Configure standard U-boot features (expert users) was selected.
After adding this, am57xx_evm_defconfig was made and U-boot was rebuild. This was done outside CCS.
---------------------------------------
Please help on on how to run U-boot through JTAG in CCS and set breakpoint in U-Boot code?
regards,
Anupama
