Git Product home page Git Product logo

Comments (6)

GiorgosXou avatar GiorgosXou commented on May 17, 2024 1

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.

stevearc avatar stevearc commented on May 17, 2024

Have you tried setting let g:arduino_serial_baud = 115200?

from vim-arduino.

GiorgosXou avatar GiorgosXou commented on May 17, 2024

(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.

stevearc avatar stevearc commented on May 17, 2024

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.

GiorgosXou avatar GiorgosXou commented on May 17, 2024

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.

stevearc avatar stevearc commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.