Hi,
The Boot ROM has the basic intialisaton stuffs and is copying the Bootloader from the Flash to RAM , then it invokes the Bootloader that will run in RAM.(Transferring control to the Entry point of Bootloader). The Bootloader copies my MainApplication from Flash to RAM and invoke the MainApplication in RAM. (Transferring control to the Entry Point of MainApplication). All the above operations are working perfectly.
But, If i debug the BootROM , i am unable to trace/debug the Exact point at which it handles the control to the Bootloader as both are separate projects. In Reality, the BootROM calls the Bootloader and Bootloader is getting executed succesffuly. But, While debugging, As soon as the control moves from BootROM to Bootloader , i am unable to place breakpoints and debug the flow of Bootloader. In the same manner, if i place breakpoints and debug the bootloader, i am unable to get control over the MainApplication as these both are separate projects.
I had the below thoughts, but there are other interesting issues/ problems that i have stated below :
1) The Makefile should be properly generating the symbols info of all the projects. (.out should be proper with debug / symbol information) . This is done. 2) The symbols of other project(Project to which control should be transferred) should be present at the time of handing the control from one project to another project. (This can be done by adding the symbols via 'Add Symbols' option in CCS. But care should be taken that the symbol of Project 1 should not be getting overwritten with Project 2 to have control over debugger.)Issues : But, here also, there is a scenario like, 2 applications using the same Memory Areas (Data Memory Section.) So, I think In that case, the first project's symbols will get overwritten with the next project's symbols that are loaded after loading the first project's symbols .
Actually, the first project invokes the second project and after that control does not return back to the first Project. So, i have to place a breakpoint in the first project exactly at the place it calls the second project. At that point of time(while the debugger stops at the Breakpoint where the second project is being called ), i may need to load the symbols of the second project . But, i suspect even now that the symbols of the Second Project may corrupt the First Project's symbols as it must be in memory at the point of transferring control to Second Project . And this is the Problem now . What could be the solution ?
Any other ideas for resolving this issue of Debugging Multiple Projects ? I do not find any info with respect to debugging Multiple Projects in CCS (Code Composer Studio). I use CCS and XDS510-USB for OMAP.
Could someone here help me in resolving this issue ?
Thx in advans, Karthik Balaguru