-
Notifications
You must be signed in to change notification settings - Fork 24
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
Uploading on a Uno board fails #49
Comments
There's probably some subtle difference in the command that's being run from Try running the upload command vim-arduino is using (by adding a
It should fail. Then see if you can gradually update your working compile & The only differences I see at the moment are specifying the programmer and the |
This is all that is different I figured out that choosing the None option for programmer with |
Not an arduino IDE expert, but I believe that the IDE always has a programmer selected, but only actually uses it if you select "Upload Using Programmer". If this is the case then that would explain why manually passing it in causes the upload to fail. |
Describe the bug
Using ArduinoUpload to upload code to a Uno board whit AVR ISP programmer being chosen registers the following command:
which fails and this is the output:
doing the exact same thing with arduino-cli or the Arduino IDE registers this command:
which succeeds and this is the output:
the commands that each produces and the results are different, I have tested other programmer options of the plugin but none of them worked for me. I have also tested using the plugin with g:arduino_use_cli being set and without it
.
System information
Board :
arduino:avr:uno
Programmer :
avrisp
Port :
/dev/ttyACM0
Baud rate :
9600
Hardware dirs :
/home/s4/.arduino15/packages/arduino/hardware/avr/1.8.4, /home/s4/.arduino15/packages/stm32duino/hardware/STM32F1/2021.5.31, /home/s4/.arduino15/packages/STMicroelectronics/hardware/stm32/2.1.0
Verify command:
arduino-cli compile -b arduino:avr:uno -p /dev/ttyACM0 -P avrisp --build-path "/home/s4/Arduino/sketches/AS5048A_tester/build" -v "/home/s4/Arduino/sketches/AS5048A_tester/AS5048A_tester.ino
"]
To Reproduce
Steps to reproduce the behavior:
nvim [sketch].ino
AruinoChooseBoard
: Arduino Uno,ArduinoChoosePort
: [your system port],ArduinoChooseProgrammer
: AVR ISP.ArduinoUpload
Expected behavior
Working command
cd /path/to/sketch
arduino-cli board attach arduino:avr:uno [sketch].ino
arduino-cli board attach serial://[port]
arduino-cli compile [sketch].ino
arduino-cli upload -v
alternatively Arduino IDE application also works and produces the same result.
output:
The text was updated successfully, but these errors were encountered: