🛠 Arduino as ISP : programmer un autre ATmega328P

Arduino Nano (Classic, ATmega328P) · avance · Schéma : IMG-nano-classic-avance-8-nanoc-arduino-as-isp.svg — Arduino Nano maître en Arduino as ISP relié par le connecteur ICSP 6 broches à un ATmega328P nu esclave sur breadboard avec quartz 16 MHz

Objectives

Use the classic Nano as an ISP programmer ("Arduino as ISP") to burn the bootloader or a binary directly into a second ATmega328P: this bypasses the master board's bootloader via the 6-pin ICSP connector located at the top of the board. This is the fallback method when a bootloader is lost, and the first step toward using a bare ATmega328P on a breadboard.

Hardware

Complete Code

1. Cote MAITRE (Nano) : Televerser le croquis File > Examples >
   11.ArduinoISP > ArduinoISP (le sketch, PAS l'option « Burn the
   bootloader » qui suppose un programmateur deja branche).
2. Cabler ICSP maitre -> ICSP cible : MOSI-MOSI, MISO-MISO,
   SCK-SCK, RESET-RESET, VCC-VCC, GND-GND.
3. Cote IDE : Tools > Programmer > « Arduino as ISP ».
4. Graver les fusibles puis le bootloader :
   avrdude -c arduino -P COMx -b 19200 -p m328p -U flash:w:optiboot_atmega328.hex
   ou via l'IDE : Sketch > Upload Using Programmer, puis
   Tools > Burn Bootloader (choisir « Arduino as ISP (Nano) » si
   l'option dediee existe, sinon le speedo du sketch ArduinoISP).

Expected Verification

avrdude or the IDE respond with "Connecting......done" and then read the ATmega328P signatures (0x1E 0x95 0x0F). After burning the bootloader, the target behaves like a classic Nano: serial uploading works again on the burned board. The read fuses (lfuse 0xFF, hfuse 0xDE) confirm full-frequency crystal mode.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials