system
July 7, 2014, 10:12am
1
Hello,
I've tried to upload a code on my Arduino Mega, as usual. But this time, after compiling, the code won't upload itself...
The error code is below ( i removed some of the timeout messages to shorten it)
"Taille binaire du croquis : 18 226 octets (d'un max de 258 048 octets)
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
[...]
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_ReceiveMessage(): timeout
[...]
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: stk500v2_command(): failed miserably to execute command 0x13
avrdude: stk500v2_paged_write: write command failed
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout"
Any idea what the probleme is? thx
system
July 7, 2014, 10:19am
2
i tried on another sketch ; it works .
Is it possible the sketch is too "heavy"? It would surprise me since it's only about 18000bytes, and i thought the Mega had a far better capacity...
Could be the !!! problem, if your source hasthree ! anywhere the loader stops responding.
system
July 9, 2014, 12:06pm
4
by source you mean the code? even if the compiler has already gone trough it?
i'll check that, thx
Yes the source code, it will compile but there is talk on the forum of a loader bug and thre !! causes the loader to stall.
Had it a while ago when I put out an error message on an LCD og CRASHED !!! this failed to upload so had to modify the string..
Happy codoing
LMI1
July 10, 2014, 8:51am
6
I get timeout messages if I have the board using the serial port at the same I try to upload the sketch.
Don't understan when you upload any code on board is stopped....
Board will not restart using Serial until restarted at end of upload..
system
July 16, 2014, 1:27pm
8
Me again ; i've got no "!!!" in my code... But i've unplugged two leds and it works --' could it be because i ask too much power flow?
Possibly the USB current capacity is not brilliant, whaturrent limit are you using with th LED's its not the LED's its the limit Resistor that defines current flow..