0

As a novice to ATMEGA I try to use the arduino UNO (original) to burn a bootloader in a new ATMEGA328P on a breadboard.

It is clear to me that SPI is used for this task and all connections have been made as indicated on the arduino website. https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard

The load capacitors on the 16 MHz chrystal are 30 pF as per Xtal datasheet. The oscillator does not run with a new ATMEGA328P (should it?).With external power only 8 mA

Using the ATMEGA328P from the arduino UNO shows a nice working oscillator. I took the 328P from the arduino uno and placed it on the breadboard. With external power 17 mA and the sinwave visible on the oscilloscope. Some 1V pp.

Photo of Xtal test. New 328P not working. 328 from arduino working

enter image description here

Arduino selected as ISP and the sketch is uploaded. RX,TX and L start to blink and L remains on. No error messages.

Now start burning the bootloader. After a while (to long i think) the programm ends with:

stk500_recv() programmer not responding and stk500_getsync() not in sync resp 0x03

During the time that the burning takes place I only see RX blink from time to time.

Arduino: 1.8.4 (Windows 7), Board:"Arduino/Genuino Uno"

C:\Users\Werkstation\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Werkstation\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM19 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Werkstation\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM19
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03

avrdude done.  Thank you.

Fout bij het branden van de bootloader. (Dutch) With verbose on I see that the baudrate is changed During upload of the programmer software I see 115200 During burning I see 19200

I do not see any option to influence the baudrate.

Now I am stuck. Help appreciated

  • Using the ATMEGA328P from the arduino UNO shows a nice working oscillator. - really? How do you know? Perhaps post a photo of your setup. – Nick Gammon Apr 1 '18 at 8:19
  • @NickGammon Added some information in the question. – Decapod Apr 1 '18 at 9:49
  • With external power 17 mA and the sinwave visible on the oscilloscope. Some 1V pp. - I see. And the photo? – Nick Gammon Apr 1 '18 at 10:04
  • @NickGammon Moment need to change setup to show all in one picture – Decapod Apr 1 '18 at 10:05
  • 1
    "The oscillator does not run with a new ATMEGA328P (should it?)." The factory fuses on AVR chips are set to use the internal oscillator. The first part of the Arduino IDE's Tools > Burn Bootloader process sets the fuses according to the configuration of the selected board. So if, for example, you have Tools > Board > Arduino/Genuino Uno selected, it will set fuses for an external oscillator. – per1234 Apr 1 '18 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.