Multiple POLICE flashing LED's

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?

1 Like

Using a Nano ATMEGA328.
ive selected that board
com3 just comes up and is the only option
i verify then press the upload button

1 Like

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.

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\...\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
         Using Port                    : COM3
         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 "C:\Users\...\AppData\Local\Temp\arduino-sketch-CF63522A98965B64706E260E4DBFFB4C/Blink.ino.hex"
avrdude: writing flash (924 bytes):
Writing | ################################################## | 100% 0.15s
avrdude: 924 bytes of flash written
avrdude done.  Thank you.
1 Like

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?

1 Like

Hi John,

Driving that many LEDs isn’t quite as simple as plugging them all in, I found a good article on the two approaches:
https://www.arrow.com/en/research-and-events/articles/let-there-be-light-working-with-leds-in-parallel

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.

Let me know if you have any followup questions!