element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Burna bootloader on a ATmega328PB using "Arduino as ISP"
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 387 subscribers
  • Views 8297 views
  • Users 0 members are here
Related

Burna bootloader on a ATmega328PB using "Arduino as ISP"

nounours18200
nounours18200 over 2 years ago

Hello,

I have an Arduino Nano using a ATmega 328PB (not a 328P) and I have to burn a bootloader on it.

The common examples using the "Ardnuino as ISP" with a UNO as the programmer (such as this one: https://www.arduino.cc/en/Tutorial/ArduinoISP) does not work when the processor is a 328PB and not a 328P.

How to proceed to burn the bootloader on a Nano with a 328PB ???

Preferably with the Arduino IDE (very easy to use) or with another software, maybe ATMEL Studio ??

Thank you very much !

  • Sign in to reply
  • Cancel

Top Replies

  • baldengineer
    baldengineer over 2 years ago +3
    You need to install a board variant that includes a bootloader for the 328PB. For example, this one: https://github.com/0x6470/ATmega328PB-Arduino-Nano-Clone-with-Bootloader
  • baldengineer
    baldengineer over 2 years ago in reply to colporteur +2
    The vast majority of "Arduino Nano" boards are a clone. The official Nano is over $20. However, if Arduino keeps selling it, they'll have to update the official package to support the PB at some point…
  • taifur
    taifur over 2 years ago +1
    You can try this MiniCore: github.com/.../MiniCore
  • baldengineer
    baldengineer over 2 years ago

    You need to install a board variant that includes a bootloader for the 328PB.

    For example, this one: https://github.com/0x6470/ATmega328PB-Arduino-Nano-Clone-with-Bootloader

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 2 years ago

    Can you clear up my confusion. You inidicate 

    nounours18200 said:
    I have an Arduino Nano using a ATmega 328PB (not a 328P)

    With the label Arduino Nano I would assume it is supported. Is this an actual Arduino product?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • baldengineer
    baldengineer over 2 years ago in reply to colporteur

    The vast majority of "Arduino Nano" boards are a clone. The official Nano is over $20.

    However, if Arduino keeps selling it, they'll have to update the official package to support the PB at some point.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • geralds
    geralds over 2 years ago

    Hi,

    ... well, every time.. "there collide old against new"... Wink
    1) You never can program a device without an programmer - it's a hardware with will be used as a source (be programmed) the target device.

    This hardware can be an EPROM-programmer, which understand the device
    It can be a controller board, which has an programming interface onboard.
    Well, the AVR µC has an ISP interface with that you can program this µC.

    You can use this ICE-PCB (the cheaper version of the ICE), without the enclosing as well you need to purchase the interface cable if you have not:

    https://at.farnell.com/microchip/atatmel-ice-pcba/debugger-atmel-arm-avr-pcba-kit/dp/2407171?st=atmel%20ice

    The ICE with enclosing and with an interface cable:

    https://at.farnell.com/microchip/atatmel-ice-basic/debugger-atmel-arm-avr-basic-kit/dp/2407172?MER=sy-me-pd-mi-acce

    Or you can use the STK500, or STK600 development board:

    https://at.farnell.com/microchip/atstk500/starter-kit-rs232-for-avr/dp/3884429?st=stk500

    https://at.farnell.com/microchip/atstk600/avr-avr-studio-4-jtag-starter/dp/1562235?st=stk600

    2) You needs the software, an IDE e.g. Atmel - Microchip studio:

     https://www.microchip.com/en-us/tools-resources/develop/microchip-studio

    (with this Microchip studio you can use the STK600, the ICE, the STK500)

    Programming the µC ATmega328P with the STK600, with Atmel studio V7 

    Nano clone

    Actually I work with the STK600 and the ATMEL studio Version 7 (the link above you can download it).

    The Nano (on top in this image the Nano clone with the blue board) has no bootloader.

    So, then I extracted the bootloader from the original Nano (in the image -> the Nano with the green board) (the HEX.file) and than I programmed it into the Nano clone.

    After that you can easily work with the Arduino IDE as well. Just connect it on an USB port (virtual COM port).

    https://www.arduino.cc/en/software

    With the Arduino IDE you can use the STK500, the ICE (but not the STK600)

    3) You need the right bootloader for your µC:

    please read the differences 328/P --- 328PB:

    https://www.microchip.com/en-us/application-notes/an42559

    A big solution you have as well is to use the MPLABX IDE with its tools, compilers.

    https://www.microchip.com/en-us/tools-resources/develop/mplab-x-ide

    This was the overtop about an development tool.

    -

    A much more cheaper one you can work with an starter kit, like this ATMEGA328PB-XMINI (using it with the MPLABX tools):

    https://www.microchip.com/en-us/product/ATmega328PB

    https://www.microchip.com/en-us/development-tool/ATMEGA328PB-XMINI

    Please read the manuals.

    So, what do you want to do?

    With an Arduino IDE, you are not so flexible.

    With the tools from Microchip (Microchip has bought ATMEL) you can work with very well.

    I wish you the best!

    Gerald

    ---

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • taifur
    taifur over 2 years ago

    You can try this MiniCore: github.com/.../MiniCore

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube