Skip to content

This project demonstrates how to burn an Arduino Nano bootloader through an Arduino Uno from the command line.

Notifications You must be signed in to change notification settings

alissa-huskey/nano_bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Burn Arduino Nano Bootloader

This project demonstrates how to burn an Arduino Nano bootloader through an Arduino Uno from the command line.

Requirements

Software:

Hardware:

  • the Arduino Nano board you wish to burn a bootloader to
  • a working Arduino Uno board that you don't mind overwriting
  • the cable to connect it to your computer
  • 6 M/F jumper wires to connect the Nano to the Uno

Instructions

  1. Connect the Uno to your computer.
  2. Connect the Nano to a working Uno following the Connection Guide below.
  3. At the command line:
$ cd nano_bootloader
$ make

Connection Guide

Nano Uno
ICSP #1 MISO D12
ICSP #2 5V 5V
ICSP #3 SCK D13
ICSP #4 MOSI D11
ICSP #5 RST D10
ICSP #6 GND GND

Connections ICSP Pins

Documentation

Usage

make help           -- show usage
make isp            -- upload sketch to make the Uno into an ISP
make bootloader     -- burn the bootloader to the Nano
make blink          -- upload the Blink.ino sketch to the Nano
make                -- isp + bootloader + blink

There are three steps involved in burning the bootloader:

1. Make the Uno an ISP

The directory isp contains the sketch ArduinoISP.ino that will make the Arduino Uno into an ISP as well as the Makefile to upload it to the board. The sketch is found in the Arduino IDE at Files > Examples > ArduinoISP > ArduinoISP, modified here to successfully compile using avr-g++. You can see the sketch comments for additional information.

2. Burn Bootloader to Nano

The bootloader directory contains a Makefile to burn the bootloader to the Nano. The variable values were found by burning the bootloader using the Arduino IDE with verbose output enabled. (Arduino > Preferences > Show verbose output during > compilation/upload).

3. Test the Nano with the Blink sketch

The blink directory contains the Blink.ino sketch and the Makefile to upload it to the board to confirm the bootloader was successfully burned and the board is in good working order.

Etc

Further Reading

Thanks

This project depends on Arduino-Makefile and uses an example sketch from the Arduino IDE.

Meta

About

This project demonstrates how to burn an Arduino Nano bootloader through an Arduino Uno from the command line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published