AVRdude eror with my own arduino Board

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.

Does it have the Duemilanove bootloader on it?

You can find out by running this:

there is already the bootloader in the microcontroller

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.

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

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

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.

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

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.

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.

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

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

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. :confused:

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.

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??

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.

I just found a link where a guy has the same problem as mine. He's trying to program an ATMEGA328 on a breadboard and he gets the exact same error message in the IDE.
He actually found a solution and as i dont have a spare processor chip at the moment to try your solution, I'm going to try his and I let you know as soon as possible how it worked out.
https://forum.sparkfun.com/viewtopic.php?f=32&t=30068

Have you run the loop back test to verify the ft232 is working correctly?

We tried this loop back test and it worked fine.