Hi,
I am a new bee in this field. I built the DC Servo Controller v1.0 with Atmega328 chip,
burned the bootloader for 328p. Now when I try to upload a sketch it complains that there is no sync with the board. Can somebody help me? Is the bootloader I used OK and what is the board I have to use in Ardino to upload the sketch.
Thanks a lot, Simon
When you burned the bootloader were you on a breadboard with internal or external oscillator (crystal)? Or did you do this 'In Circuit' of the Servo Controller board or via another method/programmer? Did you burn the UNO, Duemilanove bootloader or the breadboard version? When you were loading/burning the bootloader did you look to the messages out put on the serial terminal while the process was ongoing? Were there error messages(?) that you may have missed? Was the programming interface actually able to connect at that time? Did you check for the blinking signal on pin thirteen of the Atmega328P? Did you properly set the Fuses? Too many questions?
The Arduindo bootloader has a blink program built into it that signals pin thirteen to blink an LED on that pin. This is how you can generally tell if it is indeed loaded. Did you check for this? I'm not familiar with the Motor Controller circuitry. Does that board have an LED attached to that pin 13 for verification?
IF - the bootloader is indeed on the chip. How are you connecting to the board? Is it through USB-serial and via the Arduino IDE? Have you adjusted the various files to assure your programming method and setup is reflected within the IDE so that connection/programming for sketches can take place? Some methods use USB from an Atmega chip and not FTDI's USB to Serial so the configuration has to work within Arduino's IDE.
Anyway - You probably have gone over all that I suggested but maybe it jogged some thoughts. Now, you can start checking. Oh, don't hope you just found a guru. I very recently just happened to build something from chip up and have struggled through some stuff. I, also, am new to all this so, I've learned what to ask about. I can point and suggest. You will have to search and look for what hints you may get - from me anyway. Good luck and have fun!
Ok - I just looked at little of the controller board and it is covered with programming interfaces. So, just run some checks and be sure the bootloader is loaded. It will not cause any problems to load it a few times to get familiar and to give you time to see how to interface with the IDE for programming firmware (sketches).
Thank you very much for suggestions.
I will try to answer to some of your questions.
I built the circuit and the 328 (not 328p) is soldered on it.
Then I build a parallel programmer called PPPPD based on stk200 and used ISP pins to program it with bootloader (atmegaBOOT-168-atmega328.hex)
First time it gave some error, but second attempt was success. Then yesterday I checked it again and upload was good. Then I read the memory and the hex files were almost similar, except that the file I read had a lot of F at the begining anf the bootloader kod at the end.
Then I connected the board with a usb to serial cable (modified Cable with PL2303 chip on it). Installed the driver for cable. I can see the power on my board. Then I tried to upload the blink scetch and I got this message
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I checked several boards and none worked.
'Have you adjusted the various files to assure your programming method and setup is reflected within the IDE so that connection/programming for sketches can take place? '
I do not know what to adjust. Please give me some advise what to change
Simon