system
November 25, 2012, 8:02am
1
Hi,
I am using ATMEGA328P-PU bootloaded with Arduino UNO optiboot. When i press reset button, LED connected on PIN 13 blinks.
When i upload using Arduino IDE and upload blink sketch, LED blinks 3 times but i get below error
avrdude: stk500_getsync(): not in sync: resp=0x00
I have selected Arduino UNO board and serial port is correctly configured.
below is the verbose output i get :: Please help
Binary sketch size: 1,084 bytes (of a 32,256 byte maximum)
C:\Users\ujjwal\Documents\Arduino\arduino-1.0.1\hardware/tools/avr/bin/avrdude -CC:\Users\ujjwal\Documents\Arduino\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\.\COM1 -b115200 -D -Uflash:w:C:\Users\ujjwal\AppData\Local\Temp\build1713308693691843524.tmp\Blink.cpp.hex:i
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Users\ujjwal\Documents\Arduino\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"
Using Port : \.\COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude done. Thank you.
I am using ATMEGA328P-PU bootloaded with Arduino UNO optiboot.
The target processor is ... on a breadboard? in your Uno?
system
November 25, 2012, 9:05am
3
How can i find that ? Chip is ATMEGA328P-PU with optiboot UNO.
Below are the contents for boards.txt file for UNO
uno.name=Arduino Uno
uno.upload.protocol=arduino
uno.upload.maximum_size=32256
uno.upload.speed=115200
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.path=optiboot
uno.bootloader.file=optiboot_atmega328.hex
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.core=arduino
uno.build.variant=standard
I'm asking where your ATMEGA328P-PU is physically located. Is it plugged into a breadboard? Or is it plugged into your Uno?
system
November 25, 2012, 9:25am
5
Its located on breadboard. I have made an arduino uno board on breadboard
Did you include the auto-reset circuit?
system
November 26, 2012, 6:06am
7
yes i have included Auto-Reset Circuit, when i upload a sketch, reset led blinks 3 times.
What are you using for a USB-to-serial converter?
Does your breadboard Uno pass a loop-back test?
http://arduino.cc/forum/index.php/topic,73748.0.html
system
November 26, 2012, 6:59am
9
Yes, it passes loopback test. I am using a serial connection using MAX232.
Are you certain you have TX and RX wired the correct way around?
What value crystal or resonator are you using?
system
November 26, 2012, 7:50am
11
Yes, RX TX connectors are wired correctly. I am using 16k crystal value.
I have attached pictures of my breadboard.
system
November 26, 2012, 7:56am
13
1 second for each blink..total 3
Then you either do not have Optiboot installed (you have a different bootloader installed) or you do not have the fuses set correctly on the target. The first option is much more likely to be correct.
Optiboot blinks the LED extremely fast. It is actually difficult to tell that there are three blinks.
system
November 26, 2012, 9:39am
15
Hi,
I again bootloaded a fresh new chip with optiboot loader but still face this issue.
How can i set fuses on target ? Is there any setting for this ?
system
November 26, 2012, 1:52pm
16
Hi,
Is there a different fuse setting for ATMEGA328P-PU ?
I use below
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
Is this correct ?
Thanks,
Ujjwal Soni
Are you using the Arduino IDE to install the bootloader?
system
November 26, 2012, 10:40pm
19
http://www.sparkfun.com/tutorials/247
See this tutorial...i think it have samething which u are trying to do.....UJJWAl SONI
system
November 26, 2012, 10:55pm
20
http://www.sparkfun.com/tutorials/247
See this tutorial...i think it have samething which u are trying to do.....UJJWAl SONI