LusoRobótica - Robótica em Português

Robótica => Iniciantes => Tópico iniciado por: OxyGen em 13 de Maio de 2010, 11:49

Título: Erro ao fazer upload para Arduino
Enviado por: OxyGen em 13 de Maio de 2010, 11:49


Boas... Estava muito bem a programar no meu Arduino quando obtenho este erro:

Binary sketch size: 970 bytes (of a 30720 byte maximum)

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
Título: Re: Erro ao fazer upload para Arduino
Enviado por: amando96 em 13 de Maio de 2010, 12:02
Boas, nunca me aconteceu, mas estive a ver isto só no outro dia:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230381702/all (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230381702/all)
Citar
I got my arduino duemilanove today and had the same error message today.  I had to change to com 5 in order to get it to work.  Apparently, it does not automatically detect and configure all of the correct settings.  Once I did this, it has worked fine.

Now, it's time to start learning and having fun.  Best of luck to you.


Estás a usar o pino 0, e 1 para alguma coisa?

Título: Re: Erro ao fazer upload para Arduino
Enviado por: OxyGen em 13 de Maio de 2010, 12:25
Procurei nesse mesmo tópico e encontrei a minha solução... não estava a usar nenhum desses pinos... simplesmente fiz um upload do programa para o Arduino e deu bem... alterei um valor, pumbas, deixou de dar...

Eis a solução que encontrei:

Citar
HERE IS MY SOLUTION:

make a big sketch (so that you have more time for the following actions).

    * unplug the board.
    * Hold down/short circuit the reset button/pin while the board has no current (is off).
    * click on UPLOAD in arduino ide.
    * while the sketch compiles power up the board with still pressed the  reset button.
    * -->RIGHT in the moment where Arduino IDE says "sketch size xxxx..." release the reset button so the board boots up....


If you are lucky and hit the right time the RX/TX leds begin to flicker and the sketch is uploaded.  Cool

I can not say how exactly the time of releasing the reset button must be hit. For me it worked on the first try!  Smiley

I also tried the describes solutions with reinstalling Driver, differnet PC and so on. but nothing worked.
- NOW my board is like it was before. uploading a new sketch woks like desingned. no tricks or workarounds are needed.


Just for info: I'm using Win7 Ultimate 64 Bit.

Just wantet to tell you that I solved this problem. Maybee anybody finds this post useful!

Regards Bernd
Título: Re: Erro ao fazer upload para Arduino
Enviado por: senso em 13 de Maio de 2010, 17:05
Isso foste tu que selecionas-te mal a placa que estás a usar ou a porta com, pois o erro que dá é o avr dude a dizer que a assinatura(o nome) do micro-controlador não é a que eles estava á espera de ler.
Título: Re: Erro ao fazer upload para Arduino
Enviado por: OxyGen em 13 de Maio de 2010, 17:58
Pois... mas como é que seleccionei mal o que quer que seja, se a unica coisa que fiz foi alterar um delay no meu programa e enviar novamente?

Já tinha tido o programa a funcionar antes, só voltei a recompilar e deu aquele erro...

Agora que resolvi este problema até ver não me voltou a dar aquele erro...

Solução Encontrada tópico encerrado...

Cumps