Go Down

Topic: How to burn bootloader on a new ATmega328-PU with an Arduino ? (Read 1 time) previous topic - next topic

toulet

Hi !
Sorry, I'm french and I've some difficulties to speak correctly english so ...  :smiley-sweat:

I've bought some ATmega328-PU without bootloader and I wish use them with my arduino UNO R3.
Since tomorrow I try to burn arduino UNO bootloader on new ship but without success.

I have an Arduino Mega 2560, an Arduino UNO R3 and a bread bord with some components ...

I've test this scheme :


With the Mega like :
http://www.instructables.com/id/Burn-Arduino-Bootloader-with-Arduino-MEGA/

I upload the ISP script to arduino mega, I change "borad" to "Arduino UNO", and I change "programmer" to "Arduino as ISP".
But when I launch "burn bootloader" I've error avrdude: stk500_recv(): programmer is not responding :(

Someone has already done this manipulation ?

My mounting :


Thanks, Cyrille.

retrolefty

Well my first thought is that many mention that after the 'programmer' board is loaded with the arduino as ISP sketch, then there is a need to have it's auto-reset feature defeated by inserting a resistor or a capacitor to the reset pin and either +5vdc or ground respectively. Don't recall the value as I always use a real ICSP programmer, but I think the resistor value was around 150 ohms or if a cap was used instead around 10ufd. You should let ours verify this before jumping in.

A second issue you may have once AVRDUDE can talk to the board running and tries to read the 'target chip' is that you might get a 'signature bytes don't match' error as I'm not sure a 328-PU is the same as a 328p chip and AVRDUDE won't be happy if the signature bytes not match what it's expecting.

Lefty


toulet

Thanks for your response.

On my Arduino UNO it's an ATmega328P-PU, like new ships (I've forgot a 'P').
For the resistor and the capa I've tested other values, no change ...

It's probably the byte code  :~

simplex

You can use your Arduino Uno R3 as an ordinary ISP programer for your atmega328p chips. You can write them with any kind of code, including a bootloader if you really need it.
see this tutorial: http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm

kf2qd

What version of the Arduino IDE (Adruino Program) are you running? Version 022, 023 work fine, Version 1.0 has a problem and version 1.01 should work. My best experience was with  022.

The resistor needs to be connected on the Arduino Board, not on the chip to be programmed. 120 - 150 Ohms to +5V and reset.

kf2qd


You can use your Arduino Uno R3 as an ordinary ISP programer for your atmega328p chips. You can write them with any kind of code, including a bootloader if you really need it.
see this tutorial: http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm


If you had read his postings you would have seen that this is exactly what he was trying to do.

simplex

#6
Dec 03, 2012, 07:00 pm Last Edit: Dec 04, 2012, 03:02 am by simplex Reason: 1

If you had read his postings you would have seen that this is exactly what he was trying to do.

He follows a different (complicated) path from the instructions in the help page I posted, which is a tutorial that not only tells you how to burn a hex code in a target AVR but also explains the most likely error messages you can get and mistakes you can make and what to do to fix the problems that might appear.
Most tutorials, on the net, suppose that the one that reads them would do everything right from the beginning to the end, step by step, like an expert. This is not the case for the majority of people.  

toulet


What version of the Arduino IDE (Adruino Program) are you running? Version 022, 023 work fine, Version 1.0 has a problem and version 1.01 should work. My best experience was with  022.

The resistor needs to be connected on the Arduino Board, not on the chip to be programmed. 120 - 150 Ohms to +5V and reset.


Hi, thanks for messages !

I use EDI 1.0 on a linux system. The resistor have to be on the bord reset pin ?

Cyrille

68tjs

Quote
Sorry, I'm french and I've some difficulties to speak correctly english so ...

Eh bien viens nous rejoindre sur la partie francophone, il y a des membres qui ont déjà donné l'explication plus de 100 fois.

In English for those who do not have the chance  :smiley-mr-green: to speak French: (improved google translation)
Well come join us on the French part, there are members who have soon given the answer more than 100 times.

Go Up