Atmega328P-PU with pre-burned bootloader doesn't work.

Hello!

It's been now 10 hours trying to get my ATmega328P-PU chip to work. By work I mean that I can upload a project on it and use it as a standalone chip for my project ( So I don't have to buy a complete new board JUST for my project). My main board that I'm using is (Arduino UNO-Funduino with ATmega328P-PU). For my project (Dot matrix real time clock) I don't want to use my existing ATmega328P-PU chip that is already on my main board BUT instead I bought another atmega chip from ebay.

http://www.ebay.co.uk/itm/251597436422?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

On ebay it says that this chip has bootloader already installed and it's ready to accept sketches.

So I folowed this tutorial, how to upload sketches to the external chip.

The problem is that I get this error:

Sketch uses 450 bytes (1%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x43
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x43
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x43

I have tried every board and every procesor that is avaible in the IDE and it never worked.

I have searched a good 2 hours on google and youtube for a solution and I read somewere that the reason why I can't upload a simple sketch is because of the wrong bootloader versions or something like that. So I tried to rewrite the bootloader and this is probably the closest I got to make it work:

avrdude: Yikes! Invalid device signature.
Error while burning bootloader.
Double check connections and try again, or use -F to override
this check.

I'm stuck now and don't what else to do. Did I bought the wrong atmega328 chip? Do I have to buy an AVR programmer to fix the bootloader?

and if somebody knows a wesite that sells ATmega328P-PU chips that have a working bootloader for UNO board.

I'm new to the arduino world and I try to learn to use it to make awesome projects :stuck_out_tongue:
Thanks for any advice in advance.

Best regards!! BoskoSLO

  1. Use Nick Gammon's bootloader installer sketch and put on a good bootloader.
    Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board

  2. On the Funduino:

  • connect Reset to Gnd.
  • connect Rx to Rx on breadboard, Tx to Tx
  • Leave Power, Gnd connected.
  • connect a jumper to from Gnd to Reset on the breadboard chip. Add a 10K pullup resistor to +5.
  1. Start the download on the IDE.
    When you see "compiled xxx of 32xxx bytes", pull the breadboard reset jumper.
    Can be easier to get the timing of pulling the reset jumper if you select
    File:Preferences, and enable Verbose outputs.

Sketch uses 450 bytes (1%) of program storage space. Maximum is 30,720 bytes.

I don't think you have your "board" set correctly. The eBay ad says it has the Uno bootloader, so you should tell the IDE that you have an Uno. Which would say:

Sketch uses 450 bytes (1%) of program storage space. Maximum is 32,256 bytes.

Thanks for answers.

I tried what "crossroads" said and it still doesn't work. It's the same error all the time.
I have checked the wiring probably for the 50th time now. I also checked with a multimeter every cable and every pin on my breadboard and everything is OK and I also tried to upload a sketch using every board and procesor option in IDE and I get the same error. I think buying a atmega328 with a bootloader already installed was a big mistake. My patience has run off now and I'm thinking on buying a fresh atmega328P-PU without anything on it, if this still doesn't work than I will just buy another arduino UNO premade board.

Since this ATmega is an electronic component and not an mechanical, I can't tell now if it came already dead or static killed it or I shorted it.

I thought replacing the existing atmega on my arduino UNO board with the one from ebay that says it's preloaded with an bootloader for UNO would work without issues but I was wrong.

Try from here then

You can definitely recover from having a bootloader installed. However the fuses may require an external clock. Do you have a clock? (eg. crystal).

Having a working chip "fail" on a breadboard is a classic case of the chip being programmed to expect a clock, and not providing one on the breadboard.

My bootloader uploader here Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer will upload a bootloader for a chip without a clock (Lilypad bootloader). It also provides a clock signal to enable it to do the upload.