Choose /dev/ACM1 (2nd board), Verbose Upload Executing task: platformio run --verbose --target upload --environment nucleo_wb55rg_p --upload-port /dev/ttyACM1
I'm experiencing the same board is flashed. The flashing command executed seems to not contain the target port at all, as verbose gives following:
CURRENT: upload_protocol = stlink openocd -d2 -s /home/admin/.platformio/packages/tool-openocd/openocd/scripts -f board/st_nucleo_wb55.cfg -c "program {.pio/build/nucleo_wb55rg_p/firmware.elf} verify reset; shutdown;"
so OPENOCD is not aware of the upload port.
On RPI, Arduino code flashed with openocd, always uploads to the 2nd development board (Nucleo WB55) regardless of what I choose as an upload port.
Steps to repeat:
Executing task: platformio run --verbose --target upload --environment nucleo_wb55rg_p --upload-port /dev/ttyACM0
Executing task: platformio run --verbose --target upload --environment nucleo_wb55rg_p --upload-port /dev/ttyACM1
I'm experiencing the same board is flashed. The flashing command executed seems to not contain the target port at all, as verbose gives following:CURRENT: upload_protocol = stlink openocd -d2 -s /home/admin/.platformio/packages/tool-openocd/openocd/scripts -f board/st_nucleo_wb55.cfg -c "program {.pio/build/nucleo_wb55rg_p/firmware.elf} verify reset; shutdown;"
so OPENOCD is not aware of the upload port.