Hi all.
Im just a beginner with Arduino.
Verifying is ok but when i go to upload the below error keeps coming up.
Can anyone help please?
/usr/local/bin/arduino-cli compile --fqbn arduino:megaavr:nona4809:mode=on --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/805509177/build --build-path /tmp/arduino-build-F159BC4C1AB5974E1E3F9C885779A717 /tmp/805509177/POLICE_strobe
Sketch uses 2014 bytes (4%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
Upload started
Programming with: Serial
Restarting in bootloader mode
Flashing with command:C:/Users/murph/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude.exe -CC:/Users/murph/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM3 -b115200 -e -D -Uflash:w:C:/Users/murph/AppData/Local/Temp/arduino-create-agent229494642/POLICE_strobe.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files}
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 "C:/Users/murph/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : jtag2updi
Overriding Baud Rate : 115200
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_recv(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_send(): write error: sorry no info avail
avrdude: jtagmkII_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Access is denied.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_send(): write error: sorry no info avail
avrdude: jtagmkII_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Access is denied.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_send(): write error: sorry no info avail
avrdude: jtagmkII_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Access is denied.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: ser_send(): write error: sorry no info avail
avrdude: jtagmkII_send(): failed to send command to serial port
avrdude: ser_recv(): read error: Access is denied.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): timeout/error communicating with programmer (status -1)
avrdude done. Thank you.
What Arduino development board are you uploading to (UNO WiFi?), what board have you selected, and how are you connecting to it? Have you confirmed that Com3 is correct? What procedure are you using to upload?
Note that the Nano requires selection of the processor in addition to the board. Ignore the comment re selecting by date of purchase - there are many old boards still being sold. If you have selected one, then just try the other. Are you quite sure that the board has a bootloader installed?
By āupload buttonā I assume you mean Sketch\Upload (Ctrl+U). COM3 could be anything - you should confirm that it is correct by unplugging the board and restarting the IDE. The port should disappear as an option, and re-appear when you reconnect.
However I would not expect the Nano to be listed as arduino:megaavr:nona4809, so that suggests the wrong development board is being accessed. FWIW I have pasted my results for uploading to a Nano. The programmer is listed as Arduino, not jtag2updi. I donāt know why that programmer should be referenced.
Got it working Jeff. Thank you
I chose the bootloader option and resaved and uploaded and viola⦠we have strobe flashing lights!!!
Next challenge;
I have about 12 x 1/87 scale cars i want to add tiny 0402 type ledās to (approx 10-12 per car).
should i get an arduino for each car or can 1 arduino run a few?
Basically you can either add a boost-capable IC to drive many LEDs at a time in series, or try and characterise your LEDs to drive them in parallel safely.
As far as Arduino choice, Itās all about how many different things you want going on at a time. Obviously each pin can only command one unique set of LEDs at a time, so if having all the flashing in sync is ok, you only need 2 pins, for 2 āsetsā of lights you need 4, and so on. Any Arduino should be more than capable of flashing as many lights as you want, as even a fraction of a second is an eternity from the processorās perspective, even on something as slow as a 328P.