Go Down

Topic: AVRdude eror with my own arduino Board (Read 1 time) previous topic - next topic

coucou

Hi everyone,

I tried to make my own arduino for one of my project. I used the Duemilanove PCB and I removed what I didn't need. Attach, you can find my schematic.
The ATMEGA328 that i'm using come from an arduino card so there is the bootloader inside.

When I connect my card, the computer detects the FT232 but when I try to program the ATMEGA328, the upload starts but at the end the software ARDUINO says to me this error: avrdude: stk500_getsync(): not in sync: resp=0x00.
As boards I select : arduino duemilanove
In programmer:  AVRISP mkll
I also chose the right serial port.
I found some solutions from other forums but nothing worked.



Did I forget something in my schematic?
Do you have any solutions for my problem?

Just to remind you once again I'm not using the real arduino dueminalove board, I'm using an electronic card that i built by myself.

Nick Gammon

Does it have the Duemilanove bootloader on it?

You can find out by running this:

http://www.gammon.com.au/forum/?id=11633
http://www.gammon.com.au/electronics

coucou

there is already the bootloader in the microcontroller

Nick Gammon

I understand that. You said so above. But there are different bootloaders, and if you select the wrong one in the IDE, it won't work. For example, I personally have the Uno bootloader programmed into a Duemilanove board. So I have to select Uno in the IDE and not Duemilanove, or it won't work.
http://www.gammon.com.au/electronics

coucou

ok but where do i select the boot loader in the IDE?
does this problem not only come from my board?

coucou

I Have a dueminalove bootloader in my microcontroller and I select the boards duelminalove in the IDE.

James C4S

Why do you have a resistor connected between RTS and RESET?

You should only have DTR or RTS connected through a capacitor, to allow time for the RESET to occur.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

coucou

It looks like a resistor but it's a capacitor ( 100nF).

tack

The schematic you posted shows R2 on RTS as 100 Ohm. C13 on DTR as 100nF.

You only need DTR with the cap if it's present on your USB > Serial. You don't need RTS connected at all as far as I'm aware.

retrolefty


The schematic you posted shows R2 on RTS as 100 Ohm. C13 on DTR as 100nF.

You only need DTR with the cap if it's present on your USB > Serial. You don't need RTS connected at all as far as I'm aware.


It also has a NM after the 100 ohm resistor, meaning Not Mounted. You only need DTR via the series cap connected as you have already been told.

Lefty

coucou

ok I removed R2 but I have the same error with the IDE

coucou

Nick, I don't understand how your detector works. If you can explain me a little more.
Don't you think the error come from the schematic?

I have no more idea to solve my problem. :/

Nick Gammon

You need a second Uno (or Duemilanove or similar). You put the sketch on the second board, connect as shown in the thread I linked, and it attempts to put the target board (your own board in your case) into programming mode and interrogate it.

This would demonstrate various things, like whether the crystal is working, what the fuses are, what bootloader is installed, etc. That would be my first move. Depending on what that shows, we could move on.
http://www.gammon.com.au/electronics

coucou

I bought a dueminalove board, I put the microcontroller on this board, when I program it there is no problem and it works fine.
On my board when i use the same microcontroller I am still not able to program it so I think the problem comes from the schematic.

I also noticed that in the Duemilanove boeard schematic there are LEDs connected to the GPIO0 and GPIO1 pins of the FT232. I didn't connect anything to these pins on my own board, i doubt that could be the cause of the problem but could you confirm this??

Nick Gammon

I doubt the absence of LEDs will do much. Do you have a spare processor chip? Then you could put it into the Duemilanove and run the sketch I mentioned to test your stand-alone board.
http://www.gammon.com.au/electronics

Go Up