URGENT - Error uploading Code - Blank Screen

Do you have a question on how to do something.
Ask in here.
Post Reply
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

URGENT - Error uploading Code - Blank Screen

Post by rrodriguess »

Hi guys

I may have a big problem on my hands. I will try to be as clear as possible despite the language barrier.

Last night I came home and my reefangel was working fine. Then I tryed to upload a code through bluetooth as I normally do. I got this error:

Code: Select all

avrdude: Recv: U [55] 
avrdude: Recv: n [6e] 
avrdude: Recv: k [6b] 
avrdude: Recv: n [6e] 
avrdude: Recv: o [6f] 
avrdude: Recv: w [77] 
avrdude: Recv: n [6e] 
avrdude: Recv:   [20] 
avrdude: Recv: C [43] 
avrdude: Recv: o [6f] 
avrdude: Recv: m [6d] 
avrdude: Recv: m [6d] 
avrdude: Recv: a [61] 
avrdude: Recv: n [6e] 
avrdude: Recv: d [64] 
avrdude: Recv: . [0d] 
avrdude: Recv: . [0a] 
avrdude: Recv: R [52] 
avrdude: Recv: e [65] 
avrdude: Recv: e [65] 
avrdude: Recv: f [66] 
avrdude: Recv: A [41] 
avrdude: Recv: n [6e] 
avrdude: Recv: g [67] 
avrdude: Recv: e [65] 
avrdude: Recv: l [6c] 
avrdude: Recv: > [3e] 
avrdude: Recv: U [55] 
avrdude: Recv: n [6e] 
avrdude: Recv: k [6b] 
avrdude: Recv: n [6e] 
avrdude: Recv: o [6f] 
avrdude: Recv: w [77] 
avrdude: Recv: n [6e] 
avrdude: Recv:   [20] 
avrdude: Recv: C [43] 
avrdude: Recv: o [6f] 
avrdude: Recv: m [6d] 
avrdude: Recv: m [6d] 
avrdude: Recv: a [61] 
avrdude: Recv: n [6e] 
avrdude: Recv: d [64] 
avrdude: Recv: . [0d] 
avrdude: Recv: . [0a] 
avrdude: Recv: R [52] 
avrdude: Recv: e [65] 
avrdude: Recv: e [65] 
avrdude: Recv: f [66] 
avrdude: Recv: A [41] 
avrdude: Recv: n [6e] 
avrdude: Recv: g [67] 
avrdude: Recv: e [65] 
avrdude: Recv: l [6c] 
avrdude: Recv: > [3e] 
avrdude: Recv: U [55] 
avrdude: Recv: n [6e] 
avrdude: Recv: k [6b] 
avrdude: Recv: n [6e] 
avrdude: Recv: o [6f] 
avrdude: Recv: w [77] 
avrdude: Recv: n [6e] 
avrdude: Recv:   [20] 
avrdude: Recv: C [43] 
avrdude: Recv: o [6f] 
avrdude: Recv: m [6d] 
avrdude: Recv: m [6d] 
avrdude: Recv: a [61] 
avrdude: Recv: n [6e] 
avrdude: Recv: d [64] 
avrdude: Recv: . [0d] 
avrdude: Recv: . [0a] 
avrdude: Recv: R [52] 
avrdude: Recv: e [65] 
avrdude: Recv: e [65] 
avrdude: Recv: f [66] 
avrdude: Recv: A [41] 
avrdude: Recv: n [6e] 
avrdude: Recv: g [67] 
avrdude: Recv: e [65] 
avrdude: Recv: l [6c] 
avrdude: Recv: > [3e] 
avrdude: Recv: Q [51] 
avrdude: Recv:   [20] 
avrdude: Recv: Q [51] 
avrdude: Recv: u [75] 
avrdude: Recv: i [69] 
avrdude: Recv: t [74] 
avrdude: Recv:   [20] 
avrdude: Recv: & [26] 
avrdude: Recv:   [20] 
avrdude: Recv: j [6a] 
avrdude: Recv: u [75] 
avrdude: Recv: m [6d] 
avrdude: Recv: p [70] 
avrdude: Recv:   [20] 
avrdude: Recv: t [74] 
avrdude: Recv: o [6f] 
avrdude: Recv:   [20] 
avrdude: Recv: u [75] 
avrdude: Recv: s [73] 
avrdude: Recv: e [65] 
avrdude: Recv: r [72] 
avrdude: Recv:   [20] 
avrdude: Recv: p [70] 
avrdude: Recv: g [67] 
avrdude: Recv: m [6d] 
avrdude: Recv: . [0d] 
avrdude: Recv: . [0a] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [10] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [13] 
avrdude: Recv: . [00] 
avrdude: Recv: . [14] "
and

Code: Select all

"avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x1d
avrdude: stk500v2_cmd(): failed to send command"
In th first we can se a vertical message written:
"Unknown command. Reef Angel unknow Command. Quit & junp to user pgm" (what hell?)

Tryed again, and again. Same thing. Turned off my computer bluetooth and turned back on. Nothing. Reboot my computer and... nothing.. same error!!

A few minutes later I decided to take a look at the controller itself. Its screen was gone.. I mean all I got was a blank screen.

Thought to myself: "Ok.. no reason to get worried.. just reboot it by talking off the wall".

Nothing happened... I get the same blank screen and a solid green led.

Tryed to use the TTL cable to upload a code. When I connect the USB cable on my computer I get flashing red led for a few moments and then a solid green led.

Using the TTL cable, the same error occurs "failed miserably to execute...".

By reading some posts with the same error, I double checked:

Water Damage
TTL cable not connect properly
Correct Board
Corret Serial Port

Well.. after 2 hours trying to make it work... I have to say.. I am quite worried. Even If I have to buy a new unit, I am in south america, and can't have the luxury to wait a month to get the aquarium running again.

Can someone help me please?

If necessary I can post photos and videos showing what is going on.

Tks
Rafa
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: URGENT - Error uploading Code - Blank Screen

Post by rimai »

Try loading a very simple code like this:

Code: Select all

void setup()
{
}
void loop()
{
}
Can you upload this code?
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: URGENT - Error uploading Code - Blank Screen

Post by rrodriguess »

Surprisingly I can upload this simple code!

Immediately tryed my oold code.. and got the same error.

Any thoughts?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: URGENT - Error uploading Code - Blank Screen

Post by rimai »

It has to be something in your code that is causing that behavior.
The controller has a bootloader that has a special diagnostic mode when !!! is sent in sequence.
I think your code is causing the bootloader to enter this diagnostic mode somehow.
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: URGENT - Error uploading Code - Blank Screen

Post by rrodriguess »

Worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

removed my last alteration:

"if(feedMessage==false && ReefAngel.DisplayedMenu == RETURN_MAIN_MODE){
SENDEMAIL=true;
EMAILMESSAGE="Feeding+Mode:+Ended";
feedMessage=true;
}"


Maybe I cannot use if(feedMessage==false && ReefAngel.DisplayedMenu == RETURN_MAIN_MODE) ?

Tks Roberto!!!!!
Image
Post Reply