Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.244

SMP Debugging

This chapter describes how to configure SMP (Symmetrical multiprocessing).

 

AMP_MMS

 

Warning_orange

Note that always one core of the SMP configuration can be in focus in the winIDEA instance. This focus applies to the Disassembly window, Core Registers window, Program Counter Position Cursor in Disassembly and the corresponding Editor window.

 

 

number2

Define SMP(s) via Add.

SMP-TriCore-Example5

 

number3

Define Memory Space and assign it a suitable Application.

Use the Create Default button which creates Memory Spaces for all SMPs and all cores (which are not included in an SMP).

 

SMP-TriCore-Example6

 

Number4

Configure the HSM Application and add a Symbol File via Applications / Add.

SMP-TriCore-Example7

 

Number5

Define Memory Space via SoCs / Memory Spaces.

smp-tricore-hsm

 

 

number6

Perform Reset / Download.

Begin a Debug session via:

EditorDownload

Download (this step will also Program the SoC)

EditorLoadSymbolsOnly

Load Symbols Only

EditorAttachButton

Reset

EditorResetButton

Attach

 

number7

Focus a specific core via Debug / SMP / <core>.

In the bottom right corner Debug status will show depending on a selected core:

      [CPU0] STOP     

      [CPU1] STOP     

      [CPU2] STOP     

 

MulticoreDebugging-CoreSelection

 

 

Switching from one core to another

Automatically - For example when a breakpoint is hit by any of the SMP cores, winIDEA will automatically focus that core. This synchronizes the Editor and Disassembly Windows, Watches, Locals, Callstack etc.

Manually - If you need to see what some other SMP core is doing at that time, change the focus via Debug  / Core / <core>. The Debug Windows will now synchronize to that core's context.

 

i-icon

If the first core (CPU0) is included in an SMP group, then the Debug / SMP menu is already available.

 

Copyright © 2024 TASKING Germany GmbH