Pages: [1]   Go Down
Author Topic: Standalone ATMega328P-Pu w/ Bootloader UNO not working!!  (Read 960 times)
0 Members and 1 Guest are viewing this topic.
Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8706
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it has the UNO bootloader it is expecting a 16 MHz crystal or ceramic resonator.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Still the same output from the IDE when uploading, even using the 16MHz crystal.

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8706
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Full Member
***
Karma: 0
Posts: 109
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: November 19, 2012, 10:16:01 pm by simplex » Logged

Portugal
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
« Last Edit: November 19, 2012, 08:45:58 pm by lookslikeruck » Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8706
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: