Atmel AVR

platform = atmelavr

Atmel AVR 8- and 32-bit MCUs deliver a unique combination of performance, power efficiency and design flexibility. Optimized to speed time to market-and easily adapt to new ones-they are based on the industrys most code-efficient architecture for C and assembly programming.

For more detailed information please visit vendor site.

Packages

Name Description
framework-arduinoavr Arduino Wiring-based Framework (AVR Core, 1.6)
framework-simba Simba Framework
tool-avrdude AVRDUDE
tool-micronucleus Micronucleus
toolchain-atmelavr avr-gcc

Warning

Linux Users:

Windows Users:

Please check that you have a correctly installed USB driver from board manufacturer

Frameworks

Name Description
Arduino Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.
Simba Simba is an RTOS and build framework. It aims to make embedded programming easy and portable.

Boards

Note

Adafruit

ID Name Platform Debug Microcontroller Frequency Flash RAM
bluefruitmicro Adafruit Bluefruit Micro Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
feather32u4 Adafruit Feather Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
flora8 Adafruit Flora Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
gemma Adafruit Gemma Atmel AVR   ATTINY85 8 MHz 8 Kb 0.5 Kb
metro Adafruit Metro Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
protrinket3 Adafruit Pro Trinket 3V/12MHz (USB) Atmel AVR   ATMEGA328P 12 MHz 32 Kb 2 Kb
protrinket3ftdi Adafruit Pro Trinket 3V/12MHz (FTDI) Atmel AVR   ATMEGA328P 12 MHz 32 Kb 2 Kb
protrinket5 Adafruit Pro Trinket 5V/16MHz (USB) Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
protrinket5ftdi Adafruit Pro Trinket 5V/16MHz (FTDI) Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
trinket3 Adafruit Trinket 3V/8MHz Atmel AVR   ATTINY85 8 MHz 8 Kb 0.5 Kb
trinket5 Adafruit Trinket 5V/16MHz Atmel AVR   ATTINY85 16 MHz 8 Kb 0.5 Kb

Arduboy

ID Name Platform Debug Microcontroller Frequency Flash RAM
arduboy Arduboy Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
arduboy_devkit Arduboy DevKit Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb

Arduino

ID Name Platform Debug Microcontroller Frequency Flash RAM
LilyPadUSB Arduino LilyPad USB Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
atmega328pb Atmel ATmega328PB Atmel AVR   ATMEGA328PB 16 MHz 32 Kb 2 Kb
atmegangatmega168 Arduino NG or older ATmega168 Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
atmegangatmega8 Arduino NG or older ATmega8 Atmel AVR   ATMEGA8 16 MHz 8 Kb 1 Kb
btatmega168 Arduino BT ATmega168 Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
btatmega328 Arduino BT ATmega328 Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
chiwawa Arduino Industrial 101 Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
diecimilaatmega168 Arduino Duemilanove or Diecimila ATmega168 Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
diecimilaatmega328 Arduino Duemilanove or Diecimila ATmega328 Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
esplora Arduino Esplora Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
ethernet Arduino Ethernet Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
fio Arduino Fio Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
leonardo Arduino Leonardo Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
leonardoeth Arduino Leonardo ETH Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
lilypadatmega168 Arduino LilyPad ATmega168 Atmel AVR   ATMEGA168 8 MHz 16 Kb 1 Kb
lilypadatmega328 Arduino LilyPad ATmega328 Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
megaADK Arduino Mega ADK Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
megaatmega1280 Arduino Mega or Mega 2560 ATmega1280 Atmel AVR   ATMEGA1280 16 MHz 128 Kb 8 Kb
megaatmega2560 Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
micro Arduino Micro Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
miniatmega168 Arduino Mini ATmega168 Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
miniatmega328 Arduino Mini ATmega328 Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
nanoatmega168 Arduino Nano ATmega168 Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
nanoatmega328 Arduino Nano ATmega328 Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
pro16MHzatmega168 Arduino Pro or Pro Mini ATmega168 (5V, 16 MHz) Atmel AVR   ATMEGA168 16 MHz 16 Kb 1 Kb
pro16MHzatmega328 Arduino Pro or Pro Mini ATmega328 (5V, 16 MHz) Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
pro8MHzatmega168 Arduino Pro or Pro Mini ATmega168 (3.3V, 8 MHz) Atmel AVR   ATMEGA168 8 MHz 16 Kb 1 Kb
pro8MHzatmega328 Arduino Pro or Pro Mini ATmega328 (3.3V, 8 MHz) Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
robotControl Arduino Robot Control Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
robotMotor Arduino Robot Motor Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
uno Arduino Uno Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
yun Arduino Yun Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
yunmini Arduino Yun Mini Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb

BQ

ID Name Platform Debug Microcontroller Frequency Flash RAM
zumbt328 BQ ZUM BT-328 Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

BitWizard

ID Name Platform Debug Microcontroller Frequency Flash RAM
raspduino BitWizard Raspduino Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

Controllino

ID Name Platform Debug Microcontroller Frequency Flash RAM
controllino_maxi Controllino Maxi Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
controllino_maxi_automation Controllino Maxi Automation Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
controllino_mega Controllino Mega Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
controllino_mini Controllino Mini Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

Digistump

ID Name Platform Debug Microcontroller Frequency Flash RAM
digispark-pro Digistump Digispark Pro (Default 16 MHz) Atmel AVR   ATTINY167 16 MHz 16 Kb 0.5 Kb
digispark-pro32 Digistump Digispark Pro (16 MHz) (32 byte buffer) Atmel AVR   ATTINY167 16 MHz 16 Kb 0.5 Kb
digispark-pro64 Digistump Digispark Pro (16 MHz) (64 byte buffer) Atmel AVR   ATTINY167 16 MHz 16 Kb 0.5 Kb
digispark-tiny Digistump Digispark (Default - 16 MHz) Atmel AVR   ATTINY85 16 MHz 8 Kb 0.5 Kb

Dwengo

ID Name Platform Debug Microcontroller Frequency Flash RAM
dwenguino Dwenguino Atmel AVR   AT90USB646 16 MHz 64 Kb 2 Kb

Engduino

ID Name Platform Debug Microcontroller Frequency Flash RAM
engduinov3 Engduino 3 Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb

EnviroDIY

ID Name Platform Debug Microcontroller Frequency Flash RAM
mayfly EnviroDIY Mayfly Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb

Generic ATTiny

ID Name Platform Debug Microcontroller Frequency Flash RAM
attiny13 Generic ATTiny13 Atmel AVR   ATTINY13 9 MHz 1 Kb 0.0625 Kb
attiny1634 Generic ATTiny1634 Atmel AVR   ATTINY1634 8 MHz 16 Kb 1 Kb
attiny167 Generic ATTiny167 Atmel AVR   ATTINY167 8 MHz 16 Kb 0.5 Kb
attiny2313 Generic ATTiny2313 Atmel AVR   ATTINY2313 8 MHz 2 Kb 0.125 Kb
attiny24 Generic ATTiny24 Atmel AVR   ATTINY24 8 MHz 2 Kb 0.125 Kb
attiny25 Generic ATTiny25 Atmel AVR   ATTINY25 8 MHz 2 Kb 0.125 Kb
attiny261 Generic ATTiny261 Atmel AVR   ATTINY261 8 MHz 2 Kb 0.125 Kb
attiny4313 Generic ATTiny4313 Atmel AVR   ATTINY4313 8 MHz 4 Kb 0.25 Kb
attiny44 Generic ATTiny44 Atmel AVR   ATTINY44 8 MHz 4 Kb 0.25 Kb
attiny441 Generic ATTiny441 Atmel AVR   ATTINY441 8 MHz 4 Kb 0.25 Kb
attiny45 Generic ATTiny45 Atmel AVR   ATTINY45 8 MHz 4 Kb 0.25 Kb
attiny461 Generic ATTiny461 Atmel AVR   ATTINY461 8 MHz 4 Kb 0.25 Kb
attiny48 Generic ATTiny48 Atmel AVR   ATTINY48 8 MHz 4 Kb 0.25 Kb
attiny84 Generic ATTiny84 Atmel AVR   ATTINY84 8 MHz 8 Kb 0.5 Kb
attiny841 Generic ATTiny841 Atmel AVR   ATTINY841 8 MHz 8 Kb 0.5 Kb
attiny85 Generic ATTiny85 Atmel AVR   ATTINY85 8 MHz 8 Kb 0.5 Kb
attiny861 Generic ATTiny861 Atmel AVR   ATTINY861 8 MHz 8 Kb 0.5 Kb
attiny87 Generic ATTiny87 Atmel AVR   ATTINY87 8 MHz 8 Kb 0.5 Kb
attiny88 Generic ATTiny88 Atmel AVR   ATTINY88 8 MHz 8 Kb 0.5 Kb

LightUp

ID Name Platform Debug Microcontroller Frequency Flash RAM
lightup LightUp Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb

Linino

ID Name Platform Debug Microcontroller Frequency Flash RAM
one Linino One Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb

LowPowerLab

ID Name Platform Debug Microcontroller Frequency Flash RAM
moteino LowPowerLab Moteino Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
moteinomega LowPowerLab MoteinoMEGA Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb

Mcudude

ID Name Platform Debug Microcontroller Frequency Flash RAM
mightycore1284 MightyCore ATmega1284 Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb
mightycore16 MightyCore ATmega16 Atmel AVR   ATMEGA16 16 MHz 16 Kb 1 Kb
mightycore164 MightyCore ATmega164 Atmel AVR   ATMEGA164P 16 MHz 16 Kb 1 Kb
mightycore32 MightyCore ATmega32 Atmel AVR   ATMEGA32 16 MHz 32 Kb 2 Kb
mightycore324 MightyCore ATmega324 Atmel AVR   ATMEGA324P 16 MHz 32 Kb 2 Kb
mightycore644 MightyCore ATmega644 Atmel AVR   ATMEGA644P 16 MHz 64 Kb 4 Kb
mightycore8535 MightyCore ATmega8535 Atmel AVR   ATMEGA16 16 MHz 8 Kb 0.5 Kb

Microduino

ID Name Platform Debug Microcontroller Frequency Flash RAM
1284p16m Microduino Core+ (ATmega1284P@16M,5V) Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb
1284p8m Microduino Core+ (ATmega1284P@8M,3.3V) Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb
168pa16m Microduino Core (Atmega168PA@16M,5V) Atmel AVR   ATMEGA168P 16 MHz 16 Kb 1 Kb
168pa8m Microduino Core (Atmega168PA@8M,3.3V) Atmel AVR   ATMEGA168P 8 MHz 16 Kb 1 Kb
328p16m Microduino Core (Atmega328P@16M,5V) Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
328p8m Microduino Core (Atmega328P@8M,3.3V) Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
32u416m Microduino Core USB (ATmega32U4@16M,5V) Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
644pa16m Microduino Core+ (Atmega644PA@16M,5V) Atmel AVR   ATMEGA644P 16 MHz 64 Kb 4 Kb
644pa8m Microduino Core+ (Atmega644PA@8M,3.3V) Atmel AVR   ATMEGA644P 8 MHz 64 Kb 4 Kb

OpenEnergyMonitor

ID Name Platform Debug Microcontroller Frequency Flash RAM
emonpi OpenEnergyMonitor emonPi Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

PanStamp

ID Name Platform Debug Microcontroller Frequency Flash RAM
panStampAVR PanStamp AVR Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb

Pinoccio

ID Name Platform Debug Microcontroller Frequency Flash RAM
pinoccio Pinoccio Scout Atmel AVR   ATMEGA256RFR2 16 MHz 256 Kb 32 Kb

Pololu Corporation

ID Name Platform Debug Microcontroller Frequency Flash RAM
a-star32U4 Pololu A-Star 32U4 Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb

Punch Through

ID Name Platform Debug Microcontroller Frequency Flash RAM
lightblue-bean LightBlue Bean Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
lightblue-beanplus LightBlue Bean+ Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

Quirkbot

ID Name Platform Debug Microcontroller Frequency Flash RAM
quirkbot Quirkbot Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb

RedBearLab

ID Name Platform Debug Microcontroller Frequency Flash RAM
blend RedBearLab Blend Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
blendmicro16 RedBearLab Blend Micro 3.3V/16MHz (overclock) Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
blendmicro8 RedBearLab Blend Micro 3.3V/8MHz Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb

RepRap

ID Name Platform Debug Microcontroller Frequency Flash RAM
reprap_rambo RepRap RAMBo Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb

SODAQ

ID Name Platform Debug Microcontroller Frequency Flash RAM
sodaq_galora SODAQ GaLoRa Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb
sodaq_mbili SODAQ Mbili Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb
sodaq_moja SODAQ Moja Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
sodaq_ndogo SODAQ Ndogo Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb
sodaq_tatu SODAQ Tatu Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb

Sanguino

ID Name Platform Debug Microcontroller Frequency Flash RAM
sanguino_atmega1284_8m Sanguino ATmega1284p (8MHz) Atmel AVR   ATMEGA1284P 8 MHz 128 Kb 16 Kb
sanguino_atmega1284p Sanguino ATmega1284p (16MHz) Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb
sanguino_atmega644 Sanguino ATmega644 or ATmega644A (16 MHz) Atmel AVR   ATMEGA644 16 MHz 64 Kb 4 Kb
sanguino_atmega644_8m Sanguino ATmega644 or ATmega644A (8 MHz) Atmel AVR   ATMEGA644 8 MHz 64 Kb 4 Kb
sanguino_atmega644p Sanguino ATmega644P or ATmega644PA (16 MHz) Atmel AVR   ATMEGA644P 16 MHz 64 Kb 4 Kb
sanguino_atmega644p_8m Sanguino ATmega644P or ATmega644PA (8 MHz) Atmel AVR   ATMEGA644P 8 MHz 64 Kb 4 Kb

SparkFun

ID Name Platform Debug Microcontroller Frequency Flash RAM
sparkfun_digitalsandbox SparkFun Digital Sandbox Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
sparkfun_fiov3 SparkFun Fio V3 3.3V/8MHz Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
sparkfun_makeymakey SparkFun Makey Makey Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
sparkfun_megamini SparkFun Mega Pro Mini 3.3V Atmel AVR   ATMEGA2560 8 MHz 256 Kb 8 Kb
sparkfun_megapro16MHz SparkFun Mega Pro 5V/16MHz Atmel AVR   ATMEGA2560 16 MHz 256 Kb 8 Kb
sparkfun_megapro8MHz SparkFun Mega Pro 3.3V/8MHz Atmel AVR   ATMEGA2560 8 MHz 256 Kb 8 Kb
sparkfun_promicro16 SparkFun Pro Micro 5V/16MHz Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb
sparkfun_promicro8 SparkFun Pro Micro 3.3V/8MHz Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
sparkfun_qduinomini SparkFun Qduino Mini Atmel AVR   ATMEGA32U4 8 MHz 32 Kb 2.5 Kb
sparkfun_redboard SparkFun RedBoard Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb
sparkfun_satmega128rfa1 SparkFun ATmega128RFA1 Dev Board Atmel AVR   ATMEGA128RFA1 16 MHz 16 Kb 124 Kb
sparkfun_serial7seg SparkFun Serial 7-Segment Display Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
uview SparkFun MicroView Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

The Things Network

ID Name Platform Debug Microcontroller Frequency Flash RAM
the_things_uno The Things Uno Atmel AVR   ATMEGA32U4 16 MHz 32 Kb 2.5 Kb

TinyCircuits

ID Name Platform Debug Microcontroller Frequency Flash RAM
tinyduino TinyCircuits TinyDuino Processor Board Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb
tinylily TinyCircuits TinyLily Mini Processor Atmel AVR   ATMEGA328P 8 MHz 32 Kb 2 Kb

Wicked Device

ID Name Platform Debug Microcontroller Frequency Flash RAM
wildfirev2 Wicked Device WildFire V2 Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb
wildfirev3 Wicked Device WildFire V3 Atmel AVR   ATMEGA1284P 16 MHz 128 Kb 16 Kb

makerlab.mx

ID Name Platform Debug Microcontroller Frequency Flash RAM
altair Altair Atmel AVR   ATMEGA256RFR2 16 MHz 256 Kb 32 Kb

nicai-systems

ID Name Platform Debug Microcontroller Frequency Flash RAM
bob3 nicai-systems BOB3 coding bot Atmel AVR   ATMEGA88 8 MHz 8 Kb 1 Kb
nibo2 nicai-systems NIBO 2 robot Atmel AVR   ATMEGA128 16 MHz 128 Kb 4 Kb
nibobee nicai-systems NIBObee robot Atmel AVR   ATMEGA16 15 MHz 16 Kb 1 Kb
nibobee_1284 nicai-systems NIBObee robot with Tuning Kit Atmel AVR   ATMEGA1284P 20 MHz 128 Kb 16 Kb
niboburger nicai-systems NIBO burger robot Atmel AVR   ATMEGA16 15 MHz 16 Kb 1 Kb
niboburger_1284 nicai-systems NIBO burger robot with Tuning Kit Atmel AVR   ATMEGA1284P 20 MHz 128 Kb 16 Kb

ubIQio

ID Name Platform Debug Microcontroller Frequency Flash RAM
ardhat ubIQio Ardhat Atmel AVR   ATMEGA328P 16 MHz 32 Kb 2 Kb

Upload using Programmer

To upload firmware using programmer you need to use program target instead upload for platformio run --target command. For example, platformio run -t program.

Configuration for the programmers:

  • AVR ISP

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = stk500v1
    upload_flags = -P$UPLOAD_PORT
    
    ; edit this line with valid upload port
    upload_port = SERIAL_PORT_HERE
    
  • AVRISP mkII

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = stk500v2
    upload_flags = -Pusb
    
  • USBtinyISP

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = usbtiny
    
  • ArduinoISP

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = arduinoisp
    
  • USBasp

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = usbasp
    upload_flags = -Pusb
    
  • Parallel Programmer

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = dapa
    upload_flags = -F
    
  • Arduino as ISP

    [env:myenv]
    platform = atmelavr
    framework = arduino
    upload_protocol = stk500v1
    upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED
    
    ; edit these lines
    upload_port = SERIAL_PORT_HERE
    upload_speed = 19200
    

Upload EEPROM data

To upload EEPROM data (from EEMEM directive) you need to use uploadeep target instead upload for platformio run --target command. For example, platformio run -t uploadeep.

Fuses

PlatformIO has built-in target named fuses for setting fuse bits. The default fuse bits are predefined in board manifest file in fuses section. For example, Arduino Uno Fuses.

To set fuse bits you need to use target fuses for platformio run --target command.

Custom Fuses

You can specify custom fuse bits. Please create custom extra_scripts and override default “fuses” command:

platformio.ini:

[env:custom_fuses]
platform = atmelavr
extra_scripts = extra_script.py

extra_script.py:

Import('env')
env.Replace(FUSESCMD="avrdude $UPLOADERFLAGS -e -Ulock:w:0x3F:m -Uhfuse:w:0xDE:m -Uefuse:w:0x05:m -Ulfuse:w:0xFF:m")