This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
We are using PROCESSOR_SDK_VISION_03_07_00_00 with CCSv7 for a custom DRA7 board. We are able to connect the A15 core and load the SPL image from JTAG. But we are not able to hit any breakpoint although we are putting the breakpoint in the init code from where we are actually getting logs.
We have followed the steps mentioned in the tutorial https://training.ti.com/linux-board-porting-series-module-7-debugging-u-boot-jtag-ccs?context=399066-696
Are we missing out on any step?
Thanks
Deepika
Hi Karan,
We are loading the SPL with symbols through CCS. SD card is not inserted in the board. Let me know if you need any other info.
Thanks,
Deepika
Hi Deepika,
Can you make sure that the part of the init code (where you are putting breakpoints) is running after you load? So basically the CCS (by default) will load your application and would run till main() of your program and then halt.
Regards,
Karan
Hi Karan,
I have added prints in the init code. We are getting that print when we are booting from SD card. We are applying breakpoint at the same print.
But we are not able to hit that point.
Thanks
Deepika
Hi Deepika,
Can you right click on the core -> Open Gel files view -> Auto Run and Launch Options -> uncheck "On a program load or restart" under Auto Run Option.
And then provide feedback?
Regards,
Karan
Hi Karan,
Still the same result. Not able to apply breakpoint..neither SW nor HW
Anything else we are missing?
Thanks,
Deepika
Hi Deepika,
1. Around the 11min mark in the video you pointed it mentions to use HW break point instead of SW. Can you make sure that is the case for you?
2. Another thing is, when you put the HW breakpoint - does it get enabled? I can help you check that if you provide a screenshot of the breakpoints tab. Note sometimes the line of code which you are trying to put a breakpoint on will be optimized by the compiler and the breakpoint doesn't get enabled.
3. Last thing to check is to run the SPL from SD card but with a while(1) loop, now once you boot - you will be busy waiting at that while(1). At this point connect CCS and load symbols and then try to put breakpoints.
Regards,
Karan