Go Down

Topic: Arduino uno wifi rev2 can not upload any sketch (Read 3451 times) previous topic - next topic

karles

Hello,
I tested to upload sketch to my arduino uno wifi rev2 but any sketch can upload.
I send you an screenshot with error to upload blink sketch.

Best regards,
carles.


Juraj

did you install and use the Arduino megaavr package?

pert

Although they have similar names, the Arduino Uno WiFi and the Arduino Uno WiFi Rev2 are very different things. You have an Arduino Uno WiFi Rev2, but you have selected Tools > Board > Arduino Uno WiFi. That is the cause of the error. Please do this:
  • Tools > Board > Boards Manager
  • Wait for downloads to finish.
  • Click on "Arduino megaAVR Boards by Arduino".
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".
  • Tools > Board > Arduino Uno WiFi Rev2
  • Try uploading again.

karles

#3
Mar 02, 2019, 08:35 am Last Edit: Mar 02, 2019, 08:37 am by karles
Hello again,
I installed "Arduino megaAVR Boards by Arduino".
I tested it but I can not upload any sketch. Error is permission denied to use USB. I put a screenshot named "Arduino-Unowifi.rev2-permision-denied.png"
I ran in my fedora 29 terminal " sudo usermod -a -G uucp,dialout,lock carles" but it said "usermod: el grup «uucp» no existeix
" = ( usermod uucp group dont exist).
I tested arduino wifi rev 2 as root with order "sudo arduino" and blink sketch can upload but no ran. I put an other screenshot named "sudo arduino.png"

What can I make ?
Thanks for your help.
Carles.

Juraj

https://www.arduino.cc/en/Guide/Linux#toc6

karles

#5
Mar 02, 2019, 03:35 pm Last Edit: Mar 02, 2019, 03:36 pm by karles
Hello again.
I tested permissions with your link and there is the output.
After this order I tested blink sketch with «arduino uno wifi rev2» but I have this error again. (permision denied)
I test «Arduino uno» with blink sketch and it run with no problems. You can see (blink on UNO).
I think that problem is communication between «Arduino uno wifi 2rev» and computer, but not communication between «Arduino uno» and computer.

Thanks for your help.
What can I do ?
Carles.

Juraj

Quote
You will need to log out and log in again for this change to take effect.

karles

Hello again,
I restarted my Fedora 29. Then I tested blink sketch on «Arduino uno wifi rev2» with the same error:

avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
S'ha produït un error mentre s'enviava el programari.


Thanks for your help.
What can I do ?
Carles.

pert

Are you using the mhall1119 snap package of the Arduino IDE? There have been reports of this package having these "Permission denied" errors, even after doing the dialout group thing. That issue was resolved by uninstalling the snap package and installing the official Arduino IDE, downloaded here:
http://www.arduino.cc/en/Main/Software

karles

Hello again,
I have not any snap package of the Arduino IDE but I uninstalled arduino 1.8.5 from source fedora and I have only arduino 1.8.8 from source arduino,cc , I tested «arduino uno» with blink sketch and it run , I keep the permissions to write on it via usb ( /dev/ttyACM0 ).
Now I can test «Arduino uno wifi 2rev» with blink sketch, but it can not upload blink to my «arduino wifi»
Error is still the same:

avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145

I installed temporarily wine to test arduino ide for windows (zip version), this «arduino ide» can upload sketches to «arduino uno» with no problems via  usb (com3) , but can not upload any sketch to «arduino uno wifi rev2». The error is the same as before. I uninstalled wine.

Thanks for your help.
What can I do ?
Carles.

pert

I uninstalled arduino 1.8.5 from source fedora
That's probably the same thing, or similar. I recommend against installing the Arduino IDE via any package managers. The reason is that you will usually get an outdated and possibly 3rd party modified version of the Arduino IDE that is not well supported.

Error is still the same:

avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
Is that when using Arduino IDE 1.8.8 downloaded from this website?

Did you uninstall Arduino IDE 1.8.5?

karles

Hello,


--> Did you uninstall Arduino IDE 1.8.5? Yes, Now I have any version from Fedora.

--> Is that when using Arduino IDE 1.8.8 downloaded from this website? Yes I use only Arduino 1.8.8 from this website.

Error is still as screenshot.

Thanks.
Carles

karles

#12
Mar 07, 2019, 06:43 pm Last Edit: Mar 07, 2019, 06:44 pm by karles
Hello again,
I tested «Arduino wifi rev2» with «Arduino web editor».
I send you output console into debug.txt and screenshot error after test blink sketch.

What can I do ?
Carles.

karles

Hello again,
I tested «Arduino uno wifi rev2» with Ubuntu 18.04 and with Lliurex 16 (a Gnu/Linux educational derivative from Ubuntu 16). I can not upload any sketch from these Linux distributions. I used Arduino 1.8.8 as only software to manage  Arduino boards. So I send some files with Ubuntu's terminal Output when I tested Arduino board to help developers to find this bug that make this board unusable for educational purposes with any Linux distribution.

Then  I  setup a virtual machine with virtualbox inside Fedora 29 with an Windows 7 as client.  And then I tested my board «Arduino uno wifi rev2» inside and it ran with a blink sketch modified. Original blink sketch can be upload but it make nothing. I send now an screenshot with this blink sketch.

I I would like that Arduino developers review my adjoints, and they do a new version of Arduino for Linux that works really with «Arduino uno wifi rev2».

Thanks for your help.
Carles.

kenharpster

#14
Mar 24, 2019, 03:04 am Last Edit: Mar 24, 2019, 03:40 am by kenharpster
I initially had this same problem when I installed Arduino IDE 1.8.8 in Linux and tried to connect to the Arduino Uno WiFi Rev 2.

I found this at (https://arduino.stackexchange.com/questions/54098/arduino-ide-permision-denied-for-upload-ubuntu) which worked for me.  I am using Linux Mint 19.1 (Ubuntu 18.04) and Arduino IDE 1.8.8 with no problems now.

Excerpt:

Arduino has added a script to the install to fix this problem. I found it after much annoyance trying to get it to work with all these suggestions.
 
In the arduino-1.8.8-linux64.tar.xz file that you download is a script called arduino-linux-setup.sh

run that from command line with your user name ./arduino-linux-setup.sh <username>

It'll ask for the root password, and then ask you to reboot. After that you won't have any more port trouble.

Go Up