-
-
Notifications
You must be signed in to change notification settings - Fork 404
Uploading the sketch to another board then expected #1885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you provide a copy of the verbose output of the upload (with the |
I tried it with the ide 1.8.19. |
|
In your board's platform, the serial port is not used to select the upload target (I guess they use it only for the serial monitor), you can see it because the port is not used at all in the command line:
It seems that they are using the SWD protocol to upload that "autodetect" the board to upload to. In this case, it is just uploading to the first available board. |
We are tracking the request for a capability to specify which board to target under these conditions here: #770 |
Actually, thinking about it more, this is already available for uploads (but not for https://arduino.github.io/arduino-cli/dev/platform-specification/#user-provided-fields |
Describe the problem
The sketch is uploaded to the wrong board on dieffrent port then specifyed
To reproduce
I have 2 simulare boards
the first on port /dev/ttyACM1
the second one is on port /dev/ttyACM2
I tryed to upload my sketch to the 2. board using:
arduino-cli upload -p /dev/ttyACM2 -b Infineon:arm:XMC1100_XMC2GO
It's run succesfully but the sketch gets uploaded to the 1. board, the 2. board, i targeted, is uneffected
Expected behavior
the second board should be updated
Arduino CLI version
nightly-20220920
Operating system
Linux
Operating system version
debian bullseye
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: