Connecting Multicore with one TAP

Document created by lunminliang Employee on Mar 23, 2015Last modified by Diana Torres on Feb 28, 2017
Version 2Show Document
  • View in full screen mode

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:

  1. Select File > New > CodeWarrior Bareboard Project Wizard from the CodeWarrior IDE menu bar.
  2. Specify a name for the new project in the Project name text box. Click Next.
  3. Select the target processor for the new project from the Processor list.
  4. Select Application from the Project Output group. Click Next.
  5. Select a supported connection type (hardware, simulator, or emulator), from the Debugger Connection Types group.
  6. Select the board you are targeting, from the Board drop-down list.
  7. Select the launch configurations, you want to include in your project, and the corresponding connection, from the Launch group.
  8. Select the interface to communicate with the hardware, from the Connection Type drop-down list. Click Next.
  9. Select the programming language, you want to use, from the Language group.
  10. Select a toolchain from the Toolchain group.
  11. Select an option from the Floating Point drop-down list, to prompt the compiler to handle the floating-point operations by generating instructions for the selected floating-point unit. Click Next.

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: