I bought two Yun's second hand yesterday, one of which works perfectly, but the other won't work and is doing weird things!
I currently have USB, ON, L13 and RX permanently on. I can access the gun via wireless and go through all the configuration panel but the Yun will not show up through USB.
It will not let me upload ANY sketches and comes up with the following issue:
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
/usr/bin/run-avrdude: line 5: can't open /tmp/efuse: no such file
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
I have completed an upgrade to the latest version via the web panel hoping that would solve it and it seemed to complete ok, I also tried to update via SSH but it failed due to 'broken pipework' ....but I'm still in the same position...can anyone help??
One cause might be that the bootloader on the AVR processor is corrupt or not present. If the Yun's network address shows up on the Arduino IDE Port menu, try uploading a sketch over the network. This will automatically update the bootloader on the AVR chip and might make it work properly?
Thank you Shapeshifter, the Yun does show up on the IDE port menu with the correct IP address, but as soon as I try to upload a sketch it comes up with the error in my previous post…
Is there another way to upload the bootloader on the AVR chip?
A bootloader can be programmed into the AVR chip using the 6 pin header and an ICSP pod. But that's basically what's happening when you program a sketch over the network: the Linux processor adds the bootloader code to your sketch, and then programs the AVR chip using the 6 pin ICSP connection. So I don't think that using an external pod is going to help.
Maybe someone else will be along with a suggestion...
I think the Atmega is broken, because if you can't program it over the network it means that it is not responding at all.
There are other things that make me more convinced about this: the L13 and RX leds always on and the not working USB communication.
Just to try everything you can:
There might be a chance of the presence of a strange sketch that blocks the normal operation of the Atmega so you can try to reset it manually just before the uploading process starts.
Stefano_Baiocco:
Hi, I have the same problem have you solved this with the ICSP?
How can I write the bootloader with a Arduino Uno R3 as ICSP?
Thanks.
ShapeShifter:
A bootloader can be programmed into the AVR chip using the 6 pin header and an ICSP pod. But that's basically what's happening when you program a sketch over the network: the Linux processor adds the bootloader code to your sketch, and then programs the AVR chip using the 6 pin ICSP connection. So I don't think that using an external pod is going to help.
Maybe someone else will be along with a suggestion...
You don't need ICSP flash.
sonnyyu:
You need reflash correct bootloader.
nano /usr/bin/run-avrdude
Change the efuse value from FB to CB
Ok sonnyyu, so I must try an ssh connection and write this code:
/usr/bin/run-avrdude /etc/arduino/Caterina-Yun.hex
If this will not function? My 32u4 is damaged and I'll ask for an exchange...?
Thanks.
It's curious that running avrdude on the Linux side didn't work while using an Uno as an ICSP did. avrdude on the Linux side should be doing the same thing - programming the MCU using the ICSP pins. Curious...
It's curious that running avrdude on the Linux side didn't work while using an Uno as an ICSP did. avrdude on the Linux side should be doing the same thing - programming the MCU using the ICSP pins. Curious...
+1
It could be IC U5 related hardware problem. If I were you I will arrange RMA.
Now with the usb port I can program the 32u4, but if I try to program with the wifi, the 32u4 bricks again but load the examples>bridge>wifi status, I can read over wifi and the serial monitor (obviously by changing from serial to console in the setup and so on) the wifi status...
Stefano_Baiocco:
Now with the usb port I can program the 32u4, but if I try to program with the wifi, the 32u4 bricks again but load the examples>bridge>wifi status, I can read over wifi and the serial monitor (obviously by changing from serial to console in the setup and so on) the wifi status...
So it sounds like the USB port on the 32U4 is working (you can program from the IDE using the USB) and the serial port between the 32U4 and AR3391 is working (the bridge communications are working) but loading code from the AR3391 is NOT working (the SPI interface that sonnyyu highlighted in his last post.)
If you had a warranty on the board, I would ask for a replacement. But since you bought them second hand, you likely don't have any warranty on them. If the SPI interface between processors is the only problem, you can work around that by always using the USB interface to load code. You'd be able to do anything that a fully functional Yun can do, except loading code over the network, and trying to use the SPI interface from Linux (a rather advanced and unusual operation.)
Know-how is a term for practical knowledge on how to accomplish something, as opposed to "know-what" (facts), "know-why" (science), or "know-who" (communication).
Hi, it's brand new and I had ask for a replacement : ) the seller accepted, so tomorrow morning I'll send back the board : ) thank you lots guys for the help.