emonTx: avrdude stk500_getsync not in sync

 Hi,

 wondering if anyone's had problem as follows when trying to upload to the emonTx under with Windows vista:

avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude: stk500_getsync(): protocol error, expect 0x14, resp 0x51

I'm getting this error on the EMONtx. I've the correct ftdi driver, correct serial port, correct board selected, I've assumed that the V2.0 kit also uses the Arduino Duemilanove bootloader. Now I'm going to use a laptop with ubuntu instead, in case it an OS problem. 

thanks,

Eamonn

Guest's picture

Re: emonTx: avrdude stk500_getsync not in sync

Hi,

see if you don't have the atmega328 inserted the wrong way. Then try this: Unplug the USB, press the Upload tool, just when the "Binary sketch size: xxx bytes (of ..." msg appears I connect the USB plug. The new program is loaded successfuly. "

EnergyRnR's picture

Re: emonTx: avrdude stk500_getsync not in sync

 Thanks for the suggestions. I had checked the atmega orientation; it's correct.

The IDE flashes a pop-up telling me I've lost my port the moment the 'Binary sketch size ....' message appears, so . I'll try it on the laptop  under vista and ubuntu in the morning and see how I go.... thanks a lot.

Eamonn

TrystanLea's picture

Re: emonTx: avrdude stk500_getsync not in sync

Have you set the board to arduino uno? Tools -> Board -> Arduino Uno

EnergyRnR's picture

Re: emonTx: avrdude stk500_getsync not in sync

 Thanks - root cause was ftdi cable was upside down. I also had problems caused by windows programs blocking port access, so I'm working on ubuntu since.

glyn.hudson's picture

Re: emonTx: avrdude stk500_getsync not in sync

 The OpenEnergyMonitor kits come with an Atmega328 that has been pre-loaded with Optiboot bootloader (select 'uno' under toold>board in Arduino IDE). Some people have experianced problems uploading code using optiboot boot loader using Windows. As from January all ATmega will come with Optiboot 4.4 bootloader. This should fix the problems with uploading code from Windows. 

S Bateman's picture

Re: emonTx: avrdude stk500_getsync not in sync

Glad it's not just me that did this, I had the exact same problem !!

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.