-
Notifications
You must be signed in to change notification settings - Fork 449
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
avrdude port differs from $MONITOR_PORT #629
Comments
I don't understand the problem with Arduino Makefile here, the Arduino IDE is uploading successfully to a port that does not exist?!
If the correct port is |
Exactly, arduino IDE uses Surely it's a very strange behaviour, but arduino IDE somehow aware of it. I'll post logs from makefile and from IDE when I'll get home. Also I'll try to test it on linux. |
On macOS I use |
What device are you using? It sounds like the bootloader is Caterina or similar whereby it enters a bootloader by toggling the baud rate. The port may enumerate as a different path once in the bootloader:
Try using ard-reset-arduino with the If it does, add |
@tuna-f1sh The device is a clone of an arduino pro micro. Yup, caterina appears to be the case, when I've run ard-reset-arduino, @ladislas, thanks! I tried it but still with no luck :( Here is complete logs from running And my makefile looks like this
|
I was torn between making a new issue for my case or necro-ing this thread, but I would have ended up with the exact same title and felt like it would have been spam. So, here I am: Similarly to the OP, I'm ending up with the wrong ports relative to my MONITOR_PORT, my issue being that I'd like to make and upload the same .ino target for multiple different Arduinos. Ex: I don't know if this is a common use case, but I thought I'd post anyways in case I was messing something up along the way. EDIT: |
Hello!
When I'm trying to upload sketch using makefile, avrdude couldn't connect to the arduino, because I assume that it uses $MONITOR_PORT as a port in avrdude
make generates this command:
avrdude ... -P /dev/cu.usbmodemMIDI1
and then avr couldn't connect to the programmer
however, arduinoIDE passes that parameter like that
avrdude ... -P /dev/cu.usbmodem1401
and uploads successfully
ls /dev | grep cu.usbmodem
gives me only
cu.usbmodemMIDI1
I tried to use $ARDUINO_PORT, setting $ISP_PORT and trying make ispload but it's not helping.
The text was updated successfully, but these errors were encountered: