8.8.1.1.1.2.14. Simultaneous¶
- interface Simultaneous()¶
- run(targets: string[], waitForHalt?: boolean)¶
Simultaneously run all targets specified.
const session1 = ds.openSession("Cortex_R5_0_0"); const session2 = ds.openSession("Cortex_R5_0_1"); // In this case, the full names of each core is longer than what we provided to openSession const targets = [session1.getName(), session2.getName()]; // Assume we have connected, loaded a program, etc. on both cores. // Run both targets simultaneously and wait for both to halt ds.simultaneous.run(targets); // Run both targets simultaneously return immediately once both are running ds.simultaneous.run(targets, false);
- Parameters:
targets (
string[]) -- A list of the targets to run.waitForHalt (
boolean | null) -- Whether the operation should wait for all targets to halt after running. Defaults to true.
- Return type:
void
- halt(targets: string[])¶
Simultaneously halt all targets specified.
const session1 = ds.openSession("Cortex_R5_0_0"); const session2 = ds.openSession("Cortex_R5_0_1"); // In this case, the full names of each core is longer than what we provided to openSession const targets = [session1.getName(), session2.getName()]; // Assume we have connected, loaded a program, issued a run, etc. on both cores. // Halt both targets simultaneously ds.simultaneous.halt(targets);
- Parameters:
targets (
string[]) -- A list of the targets to halt.
- Return type:
void
- asmStepInto(targets: string[])¶
Simultaneously perform an assembly step-into operation on all targets specified.
const session1 = ds.openSession("Cortex_R5_0_0"); const session2 = ds.openSession("Cortex_R5_0_1"); // In this case, the full names of each core is longer than what we provided to openSession const targets = [session1.getName(), session2.getName()]; // Assume we have connected, loaded a program, etc. on both cores. // Step both targets simultaneously ds.simultaneous.asmStepInto(targets);
- Parameters:
targets (
string[]) -- A list of the targets to step.
- Return type:
void