Comments (6)
Ah... there's a -None-
option in :ArduinoChooseProgrammer
that I've managed to somehow miss, I'm sorry, it uploads just fine if I do select the -None-
option
I was used to the Arduino IDE where the option Arduino as ISP
worked as the default programmer when the uno was connected by the usb
from vim-arduino.
Have you tried setting let g:arduino_serial_baud = 115200
?
from vim-arduino.
(Sorry for the late response) Yes, it doesn't work, it only changes the serial baud-rate that it is supposed to listen to, and not the one for uploading a sketch
from vim-arduino.
Ah, sorry I misread that. According to the debug information, the "verify" command it's running is
arduino-cli compile -b arduino:avr:uno -p /dev/ttyUSB0 -P arduinoasispatmega32u4 --build-path "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/build" -v "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/test0.ino"
That means that the upload command is going to just add a -u
to it
arduino-cli compile -b arduino:avr:uno -p /dev/ttyUSB0 -P arduinoasispatmega32u4 --build-path "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/build" -u -v "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/test0.ino"
If you run that manually from the command line, do you see the same error? If so, is there any invocation of arduino-cli
that you can get to work? I don't see any arguments to specify the upload baud rate.
from vim-arduino.
Not specifing a programmer also works:
arduino-cli compile -b arduino:avr:uno -p /dev/ttyUSB0 --build-path "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/build" -u -v "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/test0.ino"
"/home/xou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/xou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/ttyUSB0" -b115200 -D "-Uflash:w:/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/build/test0.ino.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/xou/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/home/xou/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/home/xou/Desktop/xou/programming/hardware/arduino/uno/test0/build/test0.ino.hex"
avrdude: writing flash (924 bytes):
Writing | ################################################## | 100% 0.17s
avrdude: 924 bytes of flash written
avrdude done. Thank you.
Used platform Version Path
arduino:avr 1.8.6 /home/xou/.arduino15/packages/arduino/hardware/avr/1.8.6
Those work too:
arduino-cli compile --fqbn arduino:avr:uno
arduino-cli upload --fqbn arduino:avr:uno -p /dev/ttyUSB0 --verbose
from vim-arduino.
Well, if it's the programmer that's causing the issue, can you let g:arduino_programmer = ''
and try again? That should remove the programmer from the compile/upload command.
I'm away from my computer that has arduino things installed atm, but if I remember correctly I think it's awkward/not possible to clear the programmer using :ArduinoChooseProgrammer
, which is why you have to set the variable directly. If this works I'll tweak the command to make it easier to clear the programmer.
from vim-arduino.
Related Issues (20)
- Not working with vim under Ubuntu 18.04 HOT 4
- :ArduinoVerify fails HOT 2
- Command to change the debug serial baudrate HOT 5
- :ArduinoVerify executing job failed: Permission denied HOT 1
- Silent (or at least more discreet) compiles/uploads HOT 1
- ArduinoChoosePort Broken HOT 1
- ArduinoSerial doesn't exit cleanly HOT 2
- Not working with Ubuntu 20.04, fails in `chooser.vim` HOT 1
- How to stop Serial Monitor HOT 4
- ctags: no such file or directory HOT 2
- E716: Key not present in Dictionary: "boards" HOT 14
- avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) HOT 3
- Uploading on a Uno board fails HOT 3
- Feature request: use sketch.json for per sketch fqbn and port HOT 4
- [question] how to set tmux for Serial? HOT 3
- ArduinoUploadAndSerial: screen: device or resource busy HOT 4
- :ArduinoChoose* commands do not work in Vim9 HOT 2
- Run SerialMonitor in another tmux pane HOT 1
- Commands not found after installing with lazy. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-arduino.