Closed Spaark84 closed 2 years ago
It is likely we will implement this soon, but I can't say exactly when. In the meantime, you can get similar behaviour with this workaround:
In the debug panel, press create a launch.json file
and select your debug configuration.
In the new file, in the driverOptions
array, add the following option:
"--drv_communication=USB:#${input:serial}",
and remove any other --drv_communication
option.
Then, add an input variable with the serial numbers of your probes to the launch.json file:
{
"version": "0.2.0",
"configurations": [
// ...
],
// Add this to prompt for a serial number
"inputs": [
{
"id": "serial",
"type": "pickString",
"description": "Debug Probe Selection",
"options": [
"57FF6D064966505512451667",
"<serial2>",
"<serial3>",
// ...
],
"default": "57FF6D064966505512451667"
}
]
}
Every time you start a session, vs code will prompt for a serial number to use.
Downloading a program by pressing Run and Debug ist not working if Always prompt for probe selection is enabled in the debugger settings of the IAR project. This applies at least to the ST-LINK/V3 debugging probe.
It would be great if a probe selection promt was displayed.