Skip to main content

IAR Embedded Workbench for RH850 3.20.x

__selectCore

In this section:
Syntax
__selectCore(int core)
Parameters
core

The core to switch to. The cores are numbered from 0 and upwards.

Return value

int 0

For use with

All C-SPY hardware debugger drivers.

Description

Switches focus from the current core to the specified core for the duration of the macro invocation or until any next invocation of __selectCore.

Example
test ()
{
  __message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;
  __selectCore(0);
  __message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;
  __selectCore(1);
  __message "Core: ", __getSelectedCore(), " pc = ", #PC:%x, “\n”;

A typical result of the above macro would be (assuming that the original core was number 1):

Core: 1 pc = 0000213C
Core: 0 pc = 00000494
Core: 1 pc = 0000213C
See also

__getSelectedCore.