Arduino Forum

Using Arduino => Microcontrollers => Topic started by: lookslikeruck on Nov 19, 2012, 10:36 pm

Title: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: lookslikeruck on Nov 19, 2012, 10:36 pm
Hey!

I'm trying programming an Atmega328  w/ Uno Bootloader in a breadboard.
I'm using an Arduino UNO to program it

reset - pin1,
RX - pin2,
TX - pin3,
5V - pins 20 & 7,
GND - pins 22 & 8,


I tried the blink() sketch when uploading it gives me an error:

Binary sketch size: 1.084 bytes (of a 32.256 byte maximum)
avrdude: stk500_recv(): programmer is not responding


What's wrong?
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: johnwasser on Nov 20, 2012, 12:27 am
If it has the UNO bootloader it is expecting a 16 MHz crystal or ceramic resonator.
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: lookslikeruck on Nov 20, 2012, 01:21 am
Still the same output from the IDE when uploading, even using the 16MHz crystal.

i followed this tutorial:
http://revoltlab.com/projects/perfduino/
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: johnwasser on Nov 20, 2012, 01:32 am

I'm using an Arduino UNO to program it


Did you try removing the 328P from the Arduino UNO and inserting the chip you want to program? If the UNO stops uploading that will tell you that something is wrong with that bootloader.
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: simplex on Nov 20, 2012, 02:15 am

i followed this tutorial:
http://revoltlab.com/projects/perfduino/

Try to follow this tutorial:
http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm
It allows you to program any target AVR directely with any code you want, ex. "blink a led".
You do not really need to write a bootloader on the chip, first.
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: lookslikeruck on Nov 20, 2012, 02:43 am
Yhep!
All seems to work just fine when loading the code with the atmega on UNO.

Does Arduino IDE needs specific preferences for this procedure?

BTW...
I saw a few days ago, an hardware "library" called "Atmega328 breadboard" but when I try to configure pin 13 (ledpin) as an output it gives me a library error...
Title: Re: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!
Post by: johnwasser on Nov 20, 2012, 04:30 am

All seems to work just fine when loading the code with the atmega on UNO.


So the problem must be in your breadboard or in your USB-to-Serial conversion.