Jump to content

Banner.jpg.b83b14cd4142fe10848741bb2a14c66b.jpg

Arduino - Help Please!!


Gina

Recommended Posts

Just unplugged the Nano and plugged in a Uno.  W7 reported Installing Driver then connected on Com17 tried uploading and it said it worked! 

So why won't a Nano work???!!!

Link to comment
Share on other sites

This looks remarkably like a problem I am having with a NANO using the CH340 chip.

Sorry but I'm a bit thick when it comes to this stuff but I have been advised to try 'burning the bootloader'.

Sorry haven't had time to read all the previous and my tea is getting cold.

Gaj

  • Thanks 1
Link to comment
Share on other sites

Looks like the Synaptic version doesn't work.  Googling says download the IDE from the Arduino web site, unpack and run the install script.  Guess I'll try that.

Link to comment
Share on other sites

Now running 1.8.10 but still won't upload to a Uno.  Tried removing everything using Synaptic and reinstalled the IDE from the web site but still no joy.  I shall have to reinstall some libraries but I'm testing with Blink which needs no extra libraries.  It compiles but won't upload.

Quote

Arduino: 1.8.10 (Linux), Board: "Arduino/Genuino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyS0 -b115200 -D -Uflash:w:/tmp/arduino_build_289593/Blink.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyS0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

Link to comment
Share on other sites

I am communicating with R Brown about his focusser and it's that that I am having trouble with. He told me to use  1.8.8 or 1.8.9 arduino IDE. Also what was said earlier about 'old bootloader' in Tools Processor. Then AVRISP MkIi

which Dr ju ju suggested earlier. 

None of that worked and I am now left with loading the bootloader. I'm not at home for a couple of days so haven't tried it yet.

Funny thing is that it seems to take code ok from Xloader.

Ps I don't want to loose my electronics either, even if I am able to knit!

Gaj

  • Thanks 1
Link to comment
Share on other sites

Tried choosing a different port in Linux - /dev/ttyUSB1 instead of /dev/ttyS0 - no difference!

Quote

Arduino: 1.8.10 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB1 -b57600 -D -Uflash:w:/tmp/arduino_build_641079/Blink.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB1
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

 

Link to comment
Share on other sites

Looks like the baud rate is being overriden to 57600? In an earlier post you mentioned 9600.

I have had the avrdude: stk500_recv(): programmer is not responding error a few times with clones, usually means either a) the lead im using is playing up or b) the bootloader needs burning. I have had some success as well with switching IDE versions or uploading from a different PC.

My laptop has real issues with uploading to nanos, until they have had something uploaded from my main PC - they behave after that. 🤔

Link to comment
Share on other sites

Changed File > Preferences to

1021815755_Screenshotfrom2019-11-1520-26-19.png.f63248007dc17037f1abe4211a3be5a1.png

Now get

Quote

Arduino: 1.8.10 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB1 -b57600 -D -Uflash:w:/tmp/arduino_build_641079/Blink.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB1
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "/dev/ttyUSB1": No such file or directory

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

Link to comment
Share on other sites

Port back to /dev/ttyS0 and now get

Quote

Arduino: 1.8.10 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyS0 -b57600 -D -Uflash:w:/tmp/arduino_build_641079/Blink.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyS0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This particular part seems it might be a problem

Quote

         System wide configuration file is "/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

 

Link to comment
Share on other sites

On my Linux machine I have removed all older versions of the Arduino IDE and recovered the libraries I need at present.  My sketch with a few extra libraries now compiles fine but neither this nor Blink will upload to either Arduino Uno or Genuine Nano with FTDI comm chip.

Link to comment
Share on other sites

[    6.009001] r8169 0000:02:00.0 enp2s0: link down
[    6.009022] r8169 0000:02:00.0 enp2s0: link down
[    6.009090] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[    6.466087] usbcore: registered new interface driver usbserial
[    6.466116] usbcore: registered new interface driver usbserial_generic
[    6.466136] usbserial: USB Serial support registered for generic
[    6.470395] usbcore: registered new interface driver ftdi_sio
[    6.470418] usbserial: USB Serial support registered for FTDI USB Serial Device
[    6.470509] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[    6.470566] usb 4-1: Detected FT232RL
[    6.473848] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[    8.285565] r8169 0000:02:00.0 enp2s0: link up
[    8.285580] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[   13.175561] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[   13.180489] vboxdrv: Found 4 processor cores
[   13.199138] vboxdrv: TSC mode is Invariant, tentative frequency 3293955666 Hz
[   13.199162] vboxdrv: Successfully loaded version 5.1.34_Ubuntu (interface 0x002a0000)
[   13.206552] VBoxNetFlt: Successfully started.
[   13.217855] VBoxNetAdp: Successfully started.
[   13.223924] VBoxPciLinuxInit
[   13.228349] vboxpci: IOMMU not found (not registered)
[   16.087507] FAT-fs (sdg1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 2109.169822] usb 4-1: USB disconnect, device number 2
[ 2109.170007] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 2109.170024] ftdi_sio 4-1:1.0: device disconnected
[ 2112.618856] usb 4-1: new full-speed USB device number 5 using ohci-pci
[ 2112.796890] usb 4-1: New USB device found, idVendor=0403, idProduct=6001
[ 2112.796896] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2112.796899] usb 4-1: Product: FT232R USB UART
[ 2112.796901] usb 4-1: Manufacturer: FTDI
[ 2112.796903] usb 4-1: SerialNumber: AC00MB2F
[ 2112.802946] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 2112.802990] usb 4-1: Detected FT232RL
[ 2112.807251] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 2658.369272] usb 4-1: USB disconnect, device number 5
[ 2658.369468] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 2658.369483] ftdi_sio 4-1:1.0: device disconnected
[ 2660.570827] usb 4-1: new full-speed USB device number 6 using ohci-pci
[ 2660.748663] usb 4-1: New USB device found, idVendor=0403, idProduct=6001
[ 2660.748669] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2660.748672] usb 4-1: Product: FT232R USB UART
[ 2660.748674] usb 4-1: Manufacturer: FTDI
[ 2660.748676] usb 4-1: SerialNumber: AC00MB2F
[ 2660.754774] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[ 2660.754836] usb 4-1: Detected FT232RL
[ 2660.758902] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
gina@Mint-Desktop ~ $ 

 

Link to comment
Share on other sites

Response now.  It gets past the port stage but "avrdude"programmer is not responding.  That's where the trouble is.

Quote

Arduino: 1.8.10 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 3896 bytes (12%) of program storage space. Maximum is 30720 bytes.
Global variables use 283 bytes (13%) of dynamic memory, leaving 1765 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

 

Link to comment
Share on other sites

I have disconnected the Nano and connected a Mega 2560 and that has compiled the sketch AND uploaded successfully.

Checked dmesg for port and set to Mega 2560 and /dev/ttyACM0.

[ 3312.946075] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 3312.946090] ftdi_sio 4-1:1.0: device disconnected
[ 3320.959230] usb 4-1: new full-speed USB device number 7 using ohci-pci
[ 3321.137984] usb 4-1: New USB device found, idVendor=2341, idProduct=0042
[ 3321.137990] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 3321.137994] usb 4-1: Manufacturer: Arduino (www.arduino.cc)
[ 3321.137997] usb 4-1: SerialNumber: A4131363139351F04172
[ 3321.171082] cdc_acm 4-1:1.0: ttyACM0: USB ACM device
[ 3321.172169] usbcore: registered new interface driver cdc_acm
[ 3321.172173] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
gina@Mint-Desktop ~ $ 
Quote

Sketch uses 4364 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 283 bytes (3%) of dynamic memory, leaving 7909 bytes for local variables. Maximum is 8192 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega2560
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : Wiring
         Description     : Wiring
         Programmer Model: AVRISP
         Hardware Version: 15
         Firmware Version Master : 2.10
         Vtarget         : 0.0 V
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: reading input file "/tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex"
avrdude: writing flash (4364 bytes):

Writing | ################################################## | 100% 0.74s

avrdude: 4364 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:
avrdude: input file /tmp/arduino_build_631969/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex contains 4364 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.59s

avrdude: verifying ...
avrdude: 4364 bytes of flash verified

avrdude done.  Thank you.

 

 

Edited by Gina
Link to comment
Share on other sites

Yes, that would make sense.  The different interface chipsets may well have different device names.  The ACM chipset is not actually just a simple USB serial device, so it doesn't get created as one.

It looks as though the IDE has some knowledge of the expected bit rates for each of the devices as I notice yours changed with the change of device.  I guess that doesn't mean it's always going to correct.

James

  • Like 1
Link to comment
Share on other sites

Found a Nano clone and was able to upload with (Old Bootloader) so I'm a happy bunny 😀  Thank again everyone.

dmesg :-

[ 1870.558425] usb 4-1: new full-speed USB device number 5 using ohci-pci
[ 1870.723282] usb 4-1: New USB device found, idVendor=1a86, idProduct=7523
[ 1870.723288] usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1870.723291] usb 4-1: Product: USB2.0-Serial
[ 1871.768896] usbcore: registered new interface driver ch341
[ 1871.768917] usbserial: USB Serial support registered for ch341-uart
[ 1871.768938] ch341 4-1:1.0: ch341-uart converter detected
[ 1871.791463] usb 4-1: ch341-uart converter now attached to ttyUSB0
gina@Mint-Desktop ~ $ 

IDE report :-

Sketch uses 3896 bytes (12%) of program storage space. Maximum is 30720 bytes.
Global variables use 283 bytes (13%) of dynamic memory, leaving 1765 bytes for local variables. Maximum is 2048 bytes.
/home/gina/arduino-1.8.10/hardware/tools/avr/bin/avrdude -C/home/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.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/gina/arduino-1.8.10/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/gina/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         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: 2
         Firmware Version: 1.16
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex"
avrdude: writing flash (3896 bytes):

Writing | ################################################## | 100% 1.26s

avrdude: 3896 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex:
avrdude: input file /tmp/arduino_build_425378/Giant_Wall_Clock_I2C-control_2019-11-15.ino.hex contains 3896 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.97s

avrdude: verifying ...
avrdude: 3896 bytes of flash verified

avrdude done.  Thank you.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.