Sometimes you will need to connecting multi-cores for debug or trace purpose. Here is a step by step instruction of connecting Multicore with CodeWarrior for PA through one USBTAP.
If you manually creating two projects, one for each core, with same connection configuration, and trying to connect to the same target board, there is no problem when connecting the first core, problem occurs when connecting the second one, you’ll get below error:
It complains the connection is already in use, connecting the second core requires closing the previous one. If closing the first core session, the second core could be connected successful. But the purpose is to connecting both cores through same TAP simultaneously.
The way for connecting Multicore with one TAP is using the CodeWarrior AMP option:
• AMP (one project per core) - Select this option to generate a separate project for each selected core. The option will also set the core index for each project based on the core selection.
• AMP (one build configuration per core) - Select this option to generate one project with multiple targets, each containing an lcf file for the specified core.
Below are the steps of creating Bareboard project:
The Configurations page appears.
12. Select a processing model option from the Processing Model group. See below picture.
13. Select the processor core that executes the project, from the Core index list. Click Next. See below picture. Remember to choose ALL the cores you would like to connect.
14. Click Finish.
If choosing the first option, it will create project for each core selecting in “Core index”.
Even though the two projects use the same connection configuration, this way allows debugger to connect two projects without problem, see below capture:
If choosing the second option, it will create one project only but with configurations for for each core selecting in “Core index”.
Even though the two configuration use the same connection configuration, this way allows debugger to connect two sessions without problem, see below capture: