My Yun Crashed upload from any sketch is not more possible

Hi Guys,

since yesterday it is not more possible to upload any sketch to the board. The linux side works without problems.
The red led on the board is lit continuously. I know this problem from my uno and mega time the bootloader is not responding.
But I get now error messages only the hint uploading.
I tried a reset with the on board buttons but nothing happens.
Have anyone a suggestion.

Thanks
Andreas

HOW did you upload your last sketch? Be as detailed as you can

pl3g921:
Hi Guys,

since yesterday it is not more possible to upload any sketch to the board. The linux side works without problems.
The red led on the board is lit continuously. I know this problem from my uno and mega time the bootloader is not responding.
But I get now error messages only the hint uploading.
I tried a reset with the on board buttons but nothing happens.
Have anyone a suggestion.

Thanks
Andreas

you get a sync error ?

Hi Guys,

thanks for your reply. I used my MAC and I connected the yun by usb. I got no error messages nothing. The yun hangs in the upload. The ide shows only the message that uploading will be done.
The red LED is on. It is possible to connect the Linux side by WIFI. It seems like bootloader problem in the AVR.

Andreas

Try tools- port and choose the port arduino is connected on.. It will be something else than COM1 or COM2 , probably COM3....

Hi zaxarias,

thanks for your answer. I have a MAC there is no COM Port available. I tried all existing ports for my
yun /dev/cu.usbmodem.. and /dev/tty.usbmodem. I developed over more than 3 weeks without any problems.

Andreas

Upload a blink via wifi. That will also restore the bootloader

Hi Frederico,

thanks it works, great. Now it's possible again to load sketches. I ordered yesterday a new yun. :-(, because I thought it is not possible to reset the bootloader. For my opinion it is necessary to provide this solution in the documentation. I have another UNO and Mega in the drawer with same problem. How can I reset the bootloader from uno and mega?

Greetings
Andreas

You need an ISP programmer for that. Google for some tutorial about using another Arduino as an ISP programmer

pl3g921:
Hi Frederico,

thanks it works, great. Now it's possible again to load sketches. I ordered yesterday a new yun. :-(, because I thought it is not possible to reset the bootloader. For my opinion it is necessary to provide this solution in the documentation. I have another UNO and Mega in the drawer with same problem. How can I reset the bootloader from uno and mega?

Greetings
Andreas

As Federico said, an AVR programmer will allow you to re-burn the bootloader. Here are a couple of common AVR programmers available in the USA. There should be something similar available where you are. Check eBay, there are some inexpensive programmers available from China.

The process for burning the bootloader is well documented. Try a Google search for it.

Jake

pl3g921 can you change the topic title to [solved] ? It looks scary...

What can cause the bootloader to get corrupt ??

I think power loss during wifi upload could be a reason, but I'm sure there are others

Hi Federico,

you ask me what do you do to crash the yun. I reproduce this errors.

If in the sketch is a programming error and you use the serial monitor and you get a never-ending output. In this case it is not possible to upload any new sketch. The serial interface of AVR is blocked. Just only helps your solution.

Andreas

Sorry, I don't get it.
zaxarias asked about how you could corrupt the bootloader.
You are saying you cannot upload a new sketch while you keep the serial port open to watch the linux side running (did I get that right?).
I think the two issues are not related, but I may miss something. Do I?

Hi Federico,

In my sketch I declared a dynamic char array with not enough space for a given String(this was my mistake). I put a greater char in it (in this case without null termination). Then I make Serial.println on this field and I get never ending output on the monitor.
The red LED is on and new upload is not possible.
Try it or ask again.

Andreas