I have been working on this project for a while now. I designed a PCB board that will have atmega328 SMD chip and the USB to UART Bridge - FT232RL on one single board .
USB bridge chip link: USB to UART Bridge - FT232RL - COM-00650 - SparkFun Electronics
atmega328 SMD chip : ATMega328 - TQFP - COM-09261 - SparkFun Electronics
I am in the final stage where I have designed the PCB, solder the microcontroller and USB bridge onto it. downlaod the bootloader, but when I try to download the program via arduino. it gives me the error
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I think the error means "can not communicate with microcontroller via usb bridge".
There is a picture of my schematics :
There is a picture of my PCB board:
If the images are too large and some got cut off, you can view it at this link: Senior Design: SMART PEN - PCB
This is the system I am running on, although I highly believe that is not the source of my problem.
windows xp,
arduino pro 8mHz/3.3v
I have other arduino boards that I can program just fine with the same computer.
The following were the steps I took:
0. I designed the PCB board based on arduino pro schematics and FT232RL breakout board schematics.
arduino pro schematics link: http://www.sparkfun.com/datasheets/DevTools/Arduino/Arduino-Pro_328-v13.pdf
USB bridge schematics link : http://www.sparkfun.com/datasheets/BreakoutBoards/FT232RL-Breakout-Schematic.pdf
-
After I received the PCB, I solder the atmega328 chip ,USB bridge and other necessary component like capacitors, resistors, onto the PCB.
-
I follow the schematics of arduino pro from Sparkfun and solder the 6 pins connection nessasary of the SPI communication in order to download the bootloader.
-
I power the board with the USB cable through the USB miniB hub on the PCB board, then connect the AVRSPI mkII to the 6 pins.
-
I open up arduino and choose the board "arduino pro 8mHz" then choose burn bootloader with AVRSPI mkII,
-
LED on AVRSPI mkII blinked orange color few times, and arduino IDE indicates "burn bootloader succesifully" ( I don't know if arduino actually verifies if the chip burns correctly. I suppose it does)
-
then I unplug the USB cable of AVRSPI mkII, then connect my PCB board to computer with an USB cable.
-
here comes the problem I mentioned, I choose the right board and the right COM port, then click "UPLOAD."
-
LED on the USB bridge will blink 3 times, then a long silence, then blink one more time, then after a while, the error message show up on arduino IDE.
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I suppose the problem here is the arduino IDE is not able to communicate the atmega328 on PCB.
I spent a lot of time troubleshooting and double checking my schematics. I just not able to figure it out why.
I suspect the problem is most likely a hardware problem where I mess up in schematics. I could be wrong.
If anyone can look at my schematics (or my PCB board) to see if I makes any error that cause the communication to fail. I appreciate your help.
[timestamp=1271829780]