Arduino Nano upload problem

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jovosm
Level 1
Level 1
Posts: 3
Joined: Thu Jan 16, 2020 10:17 pm

Arduino Nano upload problem

Post by jovosm »

After upgrade to LM21 I'm unable to upload to Arduino Nano.
Every other board work OK. Before upgrade worked just fine now both, Desktop and laptop
are unable to connect. This Nano has CH340 chip and AFAIK is supported with LM.
Never had this issue with previous updates, only after this last one.
I have tried downloading and installing drivers, adding myself to dial-out user but
nothing works. On my laptop it started working suddenly on its own and after couple hours just stopped
on its own again.
Any idea?
Last edited by LockBot on Wed Feb 15, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
iliketrains
Level 4
Level 4
Posts: 241
Joined: Wed Aug 26, 2020 6:32 pm

Re: Arduino Nano uplad problem

Post by iliketrains »

jovosm wrote: Sun Aug 14, 2022 10:24 pm On my laptop it started working suddenly on its own and after couple hours just stopped
If you're running a newer kernel than before it's possible something has changed for the worse. That on/off behaviour sounds more like a problem with the arduino or cable.
A really good troubleshooting guide
https://majenko.co.uk/blog/our-blog-1/d ... og_content
and case you try the loop back thing
https://support.arduino.cc/hc/en-us/art ... pback-test
jovosm
Level 1
Level 1
Posts: 3
Joined: Thu Jan 16, 2020 10:17 pm

Re: Arduino Nano uplad problem

Post by jovosm »

Thank You for Your help. That fist link gave me hint when run dmsg there
was message that brltty service was holding port.
Removed it and now everything works fine.
Thank again!
User avatar
Popopo
Level 3
Level 3
Posts: 179
Joined: Mon Nov 13, 2017 9:52 am

Re: Arduino Nano upload problem

Post by Popopo »

Hi,
following those instructions... it didn't work for me, but I couldn't try the last part because images doesn't match final part (adding line to the daemon).

I must tell that Arduino IDE doesn't work on my LM21. But when I open a VM with LM20.3 it works fine.

Also I have not the file :
/etc/udev/rules.d/50-boards.rules
us 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b67a Chicony Electronics Co., Ltd LG HD WebCam
Bus 001 Device 003: ID 062a:4c01 MosArt Semiconductor Corp. 2,4Ghz Wireless Transceiver [for Delux M618 Plus Wireless Vertical Mouse]
Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 005: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So, I don't know how to fit the line:
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="0033", MODE="0660", GROUP="plugdev"
To my particular system. Neither if I should to.

Given some extra information:
/etc/udev/rules.d/ files contains:
/etc/udev/rules.d$ ls
40-dfuse.rules 90-extraacl.rules 98-openocd.rules 99-arduino-101.rules avrisp.rules
File 99-arduino-101.rules contains:
# Arduino 101 in DFU Mode

SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
File avrisp.rules contains:
# Adding AVRisp UDEV rules

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avrisp_end"
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: Arduino Nano upload problem

Post by hglee »

Popopo wrote: Sat Sep 03, 2022 7:42 am Also I have not the file :
/etc/udev/rules.d/50-boards.rules
us 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b67a Chicony Electronics Co., Ltd LG HD WebCam
Bus 001 Device 003: ID 062a:4c01 MosArt Semiconductor Corp. 2,4Ghz Wireless Transceiver [for Delux M618 Plus Wireless Vertical Mouse]
Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 005: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So, I don't know how to fit the line:
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="0033", MODE="0660", GROUP="plugdev"
To my particular system. Neither if I should to.


If that applies to you, then the line of text in that file should have your device ID as shown by lsusb, 1a86:7523.

If you'd like to create that file /etc/udev/rules.d/50-boards.rules on your PC, with your device ID, just to see if it helps:

Open a Terminal (Ctrl-Alt-T), then copy-and-paste the following long line into the Terminal window, then tap Enter...

Code: Select all

sudo tee /etc/udev/rules.d/50-boards.rules<<<"ATTRS{idVendor}==\"1a86\", ATTRS{idProduct}==\"7523\", MODE=\"0660\", GROUP=\"plugdev\""

To verify the file, and the line of text in it, copy-and-paste this Terminal command...

Code: Select all

cat /etc/udev/rules.d/50-boards.rules
The Terminal output you should see: ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", MODE="0660", GROUP="plugdev"


To confirm that you're a member of the "plugdev" group on your PC, copy-and-paste this...

Code: Select all

groups $USER
That command shows all the groups that you're a member of on your PC. You should see plugdev in the list.

If you don't see plugdev in that list, then add yourself to that group...

Code: Select all

sudo usermod -aG plugdev $USER

Now reboot your PC.


If all that didn't make a useful change, then you may as well remove the file that you created above:

Code: Select all

sudo rm -v /etc/udev/rules.d/50-boards.rules

Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
User avatar
Popopo
Level 3
Level 3
Posts: 179
Joined: Mon Nov 13, 2017 9:52 am

Re: Arduino Nano upload problem

Post by Popopo »

Thank you for the tips, done but...
Actually it didn't work.

Code: Select all

etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyS4 -b57600 -D -Uflash:w:/tmp/arduino_build_375856/sketch_sep03a.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/silverio/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/home/silverio/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyS4
         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
^CProblem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
No need to mention that I tried everything explained on the links and others before this point.
I have restarted the system after changes.

Whatever... that is very strange that my VM with LM20.3 works and not here with LM21.
Also cinammon very often crash, probably another issue but seems to me that LM21 is barely stable.
iliketrains
Level 4
Level 4
Posts: 241
Joined: Wed Aug 26, 2020 6:32 pm

Re: Arduino Nano upload problem

Post by iliketrains »

Calling jovosm, still around ?

Did you see anything in dmesg trying to hi-jack your USB ? OP mentions disabling brltty but now he did this.
The same problem is mentioned in this link:
https://www.chippiko.com/ch340-dev-ttyusb-not-showing
That link also suggests downloading a module but OP makes no mention of needing to do anything of that sort.
User avatar
Popopo
Level 3
Level 3
Posts: 179
Joined: Mon Nov 13, 2017 9:52 am

Re: Arduino Nano upload problem

Post by Popopo »

Check out if the Kernel could be responsible of the issue.
It is not.

Test: MV with LM20.3 using Kernel 5.15.0-46-generic, works fine.
Main OS: LM21 using Kernel 5.15.0-46-generic & 5.15.0-47-generic, doesn't work. So the Kernel is not responsible, it seems again more structural issue than a local problem due to one component.
User avatar
Popopo
Level 3
Level 3
Posts: 179
Joined: Mon Nov 13, 2017 9:52 am

Re: Arduino Nano upload problem

Post by Popopo »

Update:
Something was updated in LM21 Cinnamon and now Arduino IDE is working again.
User avatar
happnatious1
Level 1
Level 1
Posts: 39
Joined: Fri Nov 03, 2017 8:58 am
Location: Earth
Contact:

Re: Arduino Nano upload problem

Post by happnatious1 »

Still not working for me.
LikeTheSandwich
Level 1
Level 1
Posts: 4
Joined: Tue Sep 13, 2022 11:29 pm

Re: Arduino Nano upload problem

Post by LikeTheSandwich »

Still not working for me too.
Locked

Return to “Hardware Support”