Other Parts Discussed in Thread: CCSTUDIO
Hi
Is there a way to get a list or CPUs from this command
debugSession = ds.openSession(".*");
Into this command
debugSession0 = ds.openSession("Spectrum Digital XDS510USB Emulator_0/C6472_0");
debugSession0.target.connect();
For example, if I do the command below, the output is due to a scripting exception caused by there being more than one core.
js:> ds.openSession(".*");
Could not open session. Found 7 devices matching: .*
Spectrum Digital XDS510USB Emulator_0/C6472_0
Spectrum Digital XDS510USB Emulator_0/C6472_1
Spectrum Digital XDS510USB Emulator_0/C6472_2
Spectrum Digital XDS510USB Emulator_0/C6472_3
Spectrum Digital XDS510USB Emulator_0/C6472_4
Spectrum Digital XDS510USB Emulator_0/C6472_5
Spectrum Digital XDS510USB Emulator_0/ICEPICK_C_0
I'd like to automate the connection (and loading) or all the cores and make it independent of how the core is named by the target configuration file. i.e.
debugSession0 = ds.openSession(core_string_var[0]);
debugSession0.target.connect();
where core_string_var is created by a query of the available cores.
The reason for doing this is that we'd not have to rely on each engineer using the same "Target Configuration" file. Each would be able to name the cores differently.
Cheers