Pages: [1]   Go Down
Author Topic: Bootloader on Atmega168 using AVR Programmer  (Read 1013 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello guys,
I have build a simple AVR programmer
(http://electronics-diy.com/avr_programmer.php).

Can i use this to burn the arduino bootloader on my atmega168 chip using the arduino 0018 software itself ?

I am using Serial version of arduino...
http://arduino.cc/en/Main/ArduinoBoardSerial
Logged

CT, USA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 446
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am pretty sure that the answer would be a "no". I think from within the IDE the programmer support is quite limited.

But you should be able to burn bootloader using avrdude though.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there any tutorial for the same ?
Logged

Bremen
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes - and there are even windows GUIs for that. Google/Yahoo... is your friend.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got my Atmega168 from on of the dealer of arduino.

Now i am having some other problem...
I am facing problems in uploading the sketch...

I have the troubleshooting guide.. tried all the options provided, but still unsuccessful...

Operating System: Windows XP
Arduino Board: Serial
Controller: Atmega168

I am geeting an error which says this:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Please help !
Logged

CT, USA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 446
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you know for sure that you have bootloader on the chip? It looks like the PC is not communicating with the chip.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I called the dealer and asked for a solution... He replaced the chip with a new one...

But when he tried to program the chip, using my hardware, the same error appeared.

So now, i have a problem with my hardware (i think so)... Bcoz, i tested the board with the bootloader default blinking LED program on D13 and it works well but while programming the chip i get the same error....

I have used the transistor version of the Arduino Serial Board...
How can i debug my problem ?
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16568
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have used the transistor version of the Arduino Serial Board...
How can i debug my problem ?

Well you have to determine if you have a good serial link back and forth to the PC.

1. Remove the processor chip for this test.
2. wire a jumper from pin 0 to pin 1. This will cause a loop-back connection.
3. Launch the Arduino IDE, select the proper comm port number.
4. click on the Arduino serial monitor, anything you type and send in the transmit window should be echoed back into the receive window.
5. If you don't see data coming back, time for a scope to see which direction the serial data is failing.


Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
2. wire a jumper from pin 0 to pin 1. This will cause a loop-back connection.

@retrolefty
Which pins (pin 0 & pin 1) are you talking about ? I checked schematic but i could not get pin 0 and pin 1 labeled anywhere !


Quote
5. If you don't see data coming back, time for a scope to see which direction the serial data is failing.
I will check it and let you know !
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16568
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Which pins (pin 0 & pin 1) are you talking about ? I checked schematic but i could not get pin 0 and pin 1 labeled anywhere !

I'm talking about the standard Arduino pin connectors that have pin 0 and pin 1. If you do not use standard arduinon connectors then pins 2 and 3 of the processor chip.

Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

okay i got it now...

I ll do the said and let u know !
Logged

Pages: [1]   Go Up
Jump to: