Go Down

Topic: Trying to burn bootloader onto ATMEGA328PB with ext 8Mhz clock (Read 296 times) previous topic - next topic

spaceuino

Hello all

I have a PCB which has an ATMEGA328pb chip on it with external 8Mhz crystal.

I am trying to burn a bootloader onto it so I can use it with Arduini IDE. I am using an UNO as an ISP, with pin 10 connected to RST on the PB (with 10k resistor connected between RST and GND), pin 11/12/13 connected to the same pins on the PB, but unsure which board to select. I have tried the board "Arduino Pro or Pro Mini" with processor Atmega328 (3v3, 8Mhz), but get the following errors when I attempt to burn the bootloader:

Code: [Select]
Arduino: 1.6.7 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"

C:\Users\Chris Laptop\Desktop\Sigfox\Arduino\arduino-1.6.7-windows\arduino-1.6.7\hardware\tools\avr/bin/avrdude -CC:\Users\Chris Laptop\Desktop\Sigfox\Arduino\arduino-1.6.7-windows\arduino-1.6.7\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM8 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\Chris Laptop\Desktop\Sigfox\Arduino\arduino-1.6.7-windows\arduino-1.6.7\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM8
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e9516
avrdude: Expected signature for ATmega328P is 1E 95 0F
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.


Can anyone advise how I can burn loader onto my atmega328pb with 8Mhz external clock?

DrAzzy

The pro mini has a 328P, The 328PB is a different chip (in fact, a much spiffier one - more timers (meaning more PWM pins), an extra Serial, SPI, and I2C port, 2 additional I/O pins, and A6 and A7 are fully functional I/O pins instead of analog only).

There is no official board that supports the '328pb. Some people used to upload the '328p bootloader to it (manually, generally speaking), and then select the '328p-based board whose bootloader they used, pretending it's a '328p, (and not using the new features). But there's no need to do that nowadays, because there's a third party board package available that works with it.

Install Hans's MiniCore - it supports the 328PB (as well as 328P and the smaller versions of these chips) with every crystal option in common use, and plenty that are not in common use, and exposes all the new functionality of the '328PB.

https://github.com/MCUdude/MiniCore
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up