hi everyone.
i am new to arduino..
i had made my own arduino board on vector board..
the problem i'm facing is that, when i'm compiling the program(blink program to test my board) its compiling fine, but wen im uploading it in my board, the Rx LED is blinking but i'm getting this error "avrdude: stk500_getsync(): not in sync: resp=0x00"
i am not understanding what does that mean, and what should i do to rectify that..
and i had one more doubt, which board should i select to upload my program? "atmega NG / atmega8"?
and which one should i select the programmer as? AVR ISP??
i used Atmega168 on the board.
and i couldn't load the boot loader because when i tried to burn the boot loader it said "avrdude: usbdev_open(): did not find any USB device "usb" though i had already installed the driver of the USB to SERIAL port converter, but even then i'm getting that problem..
plus, when i tried to burn the program in my board, the Rx LED was blinking, but i wasn't getting any output from the desired pin (13)..
and while burning the program, i had supplied external voltage(9V) to the board..
i had built my board by the schematics provided in arduino website..
the schematics is attached below.
Ok, you see the header block labelled "ICSP"? You need an In System Programmer (ISP) to connect to those pins to install a bootloader.
The USB/RS232 port will only let you download sketches after the bootloader is installed.
You have another Arduino? You can use that to install the bootloader.
This webpage walks you thru the process pretty thoroughly
so can't i use my usb to serial converter to burn the boot loader in Atmega168??
and if there's no boot loader, then cant i execute my programs after uploading them??
my friend has an arduino board, i can take his help, but neither he nor i know the procedure & connections to make to load the boot loader via ICSP..
and i had one more doubt, once the boot loader is burned in the Atmega168, is it permanent?
i mean, do we have to burn the boot loader every time before the sketch is loaded ???
so can't i use my usb to serial converter to burn the boot loader in Atmega168??
No.
if there's no boot loader, then cant i execute my programs after uploading them??
(edit - I had copy/pasted wrong thing for this answer)
Yes - and No.
Without a bootloader, you cannot load sketches via the serial port.
If you had a programmer, you could load sketches and not have a bootloader at all.
my friend has an arduino board,
Then you can make a little cable to connect his arduino to yours and program it as I suggested in Reply #5.
Once the bootloader is installed, it will stay there until you re-program the bootloader.
You will not have to do anymore with the bootloader to upload & re-upload your sketches afterwards.