emonBase impossible upload (not in sync) - RESOLVED

Hello everyone!

 

I just finished building my emonBase, and I can't upload code on it.

I'm using Arduino 1.0, a Sparkfun 5V FTDI Basic and the board is set to Uno in the IDE.

I just got the "avrdude: stk500_getsync(): not in sync: resp=0x00" error while trying to upload.

I tried desoldering the capacitor located on the ISP connector, but it didn't help.

 

Could this be linked to the MCP1702 issue?

 

 

Thanks in advance

 

 

gromain

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Or it could just be that I'm stupid and mounted the atmega in the wrong direction.

I'm gonna test right now and post the (hopefully) succesfull result!

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

The problem is still the same.

I still can't upload!

The atmega may be burnt, so I tried with the one from arduino Uno. But the result is the same.

I must have made a mistake somewhere, but can't find it!

I might have burnt both atmega, but I don't understand how...

glyn.hudson's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

The Atmega's included in the NanodeRF kits sold through the shop contain the OptiBoot Arduino Uno bootloader. Make sure you select Uno under Tools>Board in the Arduino IDE prior to uploading. 

Let me know if this hasnt fixed the problem. There is a change you might have a faulty chip but we do test every single chip before their shipped when we flash the bootloader. Have you got another Arduino/emonTx you can test the Atmega328 chip in? 

Alsso have you been able to upload to other boards with the same FTDI cable and IDE? 

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Hey!

 

I've been able to upload the code to the emonTX with the same cable and IDE.

I'll try to test this tonight, and post the result!

 

Thanks!

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

So, I've tested the Atmega from my emonBase in my emonTx, and was able to upload code on it.

So it's unlikely a chip problem.

I'll test just after if it's working okay, or if I have some troubles.

But the uploading problem is still strange... Because, even after being able to upload the code using the emonTx, I wasn't able to do anything with the emonBase board. I must have made a faulty connection somewhere. Or the FTDI is plugged in the wrong way. (The ground is at the left of the connector when viewed from top, right?)

 

 

 

Cheers

kuntz's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

I have the same problem, when I connect the power line, the emonbase remains off, neither the led switch on. I have upload the code with the emontx and it's all ok, but then, when I connect the chip on the emonbase, there are no signals of life. I have checked the voltage between pin 7 of the 74HCT125 (GND) and the bottom pin of the 3 pads below the 16Mhz crystal and it gives around 3.3v. When I add the wire link between the bottom pin and the middle pin of the 3 pads, I measure 0.96v in each pins. I expected to get 3.3v in each pin, or it's ok so?

Thanks!!

TrystanLea's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

It sounds to me like there must be a short, as the voltage between ground and the middle pin should be 3.3v as described on the build guide: http://ichilton.github.com/nanode/rf/build_guide.html Could there be a soldering short on the board?

 

glyn.hudson's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

It might help if you post a photo of the board (top and bottom) that way we can check that all the components are correct. 

kuntz's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

TrystanLea's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Ahh, it appears your 74HCT125 is the wrong way around, could that be it? see the correct orientation in this image: http://openenergymonitor.org/emon/sites/default/files/nanodeRF.jpg

kuntz's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

ok, very stupid error.

I try tonight and I tell You if it's all ok.

Thanks!!

kuntz's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

 

ok
it works fine
sorry for my oversight
Many thanks!!!
gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

I've been able to refined down the problem to the 74HCT125.

When plugged out, I can upload any code I want on the ATmega, and the green led lights up in normal operation (normal, but not communicating in any way because of the 74HCT125 absence).

When I put the 74HCT125 back in, I can't upload anythin, and stranger, I've got more than 3.3V between ground and pin 3 (on the socket under the atmega in direction of the USB plug.

 

Any idea? (I'm currently checking all the traces and solder joints to see if anything might have gone bad!)

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Some more informations:

When only the 74HCT125 is plugged in, I measured about 4.25V between ground and 3V3.

glyn.hudson's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

I don't think I've heard of this problem before. There is a posibility that being plugged in the wrong way could have damaged the 74HCT125. 

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

That's also what I'm thinking, also this would be strange. I'm gonna check the datasheet of the 74HCT125...

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Do you know how could I breadboard-test the 74HCT125?

gromain's picture

Re: emonBase impossible upload (not in sync) - RESOLVED

Great news!

 

It look likes the 74HCT125 was burned! I bought another one (local electronic stores are awesome!), replaced the MCP1702 (which I just received this morning), checked the voltages, and everything works great!

 

Next step: Figuring out the firmware, customizing it to upload data on my server, and everything should be ready to go!

Comment viewing options

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