Go Down

Topic: Can't upload sketches to my homemade arduino (Read 1 time) previous topic - next topic

simonepsp

Jun 01, 2014, 12:15 pm Last Edit: Jun 01, 2014, 12:20 pm by simonepsp Reason: 1
Hi,


I made this arduino for a school project but I can't get it to work. In fact I can't upload sketches into.
That's what I have:
- Arduino serial2USB light adapter ( http://arduino.cc/en/Main/USBSerial)
- My custom arduino PCB
- Arduino 1.0.5

What I'm trying to do:
I'm trying to upload a sketch on it using Arduino IDE and Arduino's Serial2USB Light Adapter.

Error I get on Arduino IDE
avrdude: stk500_getsync(): not in sync: resp=0x00

Notes
- Drivers are installed correctly and COM is successfully set.
- ATMEGA 328P-PN is already programmed with Optiboot
- When I press Reset button nothing happens.

SERIAL- PCB CONNECTIONS
5V- 5V
GND-GND
TX-RX
RX-TX
RESET/EXT-  DTR



PCB SCHEMATICS


If you need further informations please ask :)
Thank you for your help

spycatcher2k

You don't have your reset pin connected to anything that will reset the chip!
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

simonepsp

thanks. What should I do to fix this error?

spycatcher2k

refer to the reference schematic at http://arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

simonepsp

so there's a problem with reset button? :| I don't understand

spycatcher2k

Pin 1 of the 328 does not have any way to pull it LOW for a RESET.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

simonepsp

sorry, I'm not an electronic and I don't understand what should I do :)

Could you explain me ?
Thank you :)

simonepsp

#7
Jun 01, 2014, 05:52 pm Last Edit: Jun 01, 2014, 05:58 pm by simonepsp Reason: 1
I'm using a jumper to connect DTR  to RESET pin and ATMEGA 1st PIN (RESET).
I've also used a capacitor and a 10kOhm res.

What is wrong?
(see first image on first post :) )

simonepsp

Found a fix! There was a connection problem with OSC.
Here's the solution (many thanks to Christian Aschoff of Fritzing forum):

http://fritzing.org/forum/thread/3394/?page=last

Go Up