I have p2020RDB board, I need to debug application with configuration
1. Core 0 , have DUART task, in partition 1 have uC -FS, in partition 2 have uC-TCPIP
2. Core 1, have 2 partition
how to load binary/debug using CW USB Tap ?
Thanks in advanced.
---Asep
If by "binary/debug" you mean you have built a .ELF type binary file with debug information then the easiest way to do this is to reference the section on "Debugging ELF Files Created by Other Build Tools" in your copy of Pro & Linux App Edition Targeting Manual. That section describes how to import your .elf file, create a CodeWarrior project around it and get it ready for debugging. Once you got it running under the debugger you should be set. Bear in mind that if your code sets up and uses Virtual/Physical address translations, you'll have to create a Memory Configuration file to support them -- also described in the Targeting Manual. I hope this helps.
Regards,
Ron
Hi, Thanks for the quickly reply.
The applications build by CW 8.8, here are the output files in bin folder :
1. Core 0 : core_all_c0.elf (also .map and .mot)
part_fs.elf (map and mot)
part_tcpip.elf (map and mot)
2. Core 1: core_rpc_c1.elf (map and mot)
part_rpc_c1_p1.elf (map and mot)
which is better manuals should I use :
- Debugging ELF Files Created by Other Build Tools
- Debugging Multiple ELF Files Simultaneously
- Debugging a Multi-Core Processor
I have tried "Debugging a Multi-Core Processor", but with error "error stopping target from initialization file" when debug Core 1 (with core index set 1and Multi-Core Debugging checked).
Please help.
Regards,
Asep
A bit more complicated but definitely doable. First, do a File->Open (in the CodeWarrior IDE) and select your primary Core0 .elf file, core_all_c0.elf. Go through the menu prompts to create the project, as described in the Targeting Manual for debugging an ELF file generated outside of CodeWarrior. This will create your Core0 project. Do the same for your primary Core1 .elf file, core_rpc_c1.elf. You now have two CodeWarrior projects, one for each core.
Next, configure each project for debugging, again as described in the above section of the Targeting Manual. Be sure to set the Remote Debugging panel for each project to use the same Connection option, to enable "Multi-Core Debugging" and to set the Core Index appropriately (Core Index=0 for Core0 project, etc.)
Finally, open the Other Executables panel for your Core0 project. Here, click Add and select your other Core0 .elf files:
part_fs.elf and part_tcpip.elf. You may also Add your Core1's .mcp (project) file so launching the Core0 debugger also launches the Core1 debugger. Do the same for your Core1 project and its file: part_rpc_c1_p1.elf. Refer to the CodeWarrior IDE 5.7 User's Guide for details. I also recommend creating an example project within CodeWarrior IDE and referencing how its two core projects are set up, especially the Target Initialization part: do File->New->EPPC New Project Wizard and follow the prompts.
That should do it. I hope this helps.
Regards,
Ron