2.4 Memory Writing Command Usage

Usage: atprogram [options] write <arguments>.

Information: Write to the memory with values entered on the command line. The values provided will be written to all selected address spaces. At least one address space must be provided.

Options: Execute the atprogram without arguments to list the available options.

Arguments: -fl --flash: Write to flash. tinyAVR, megaAVR, and AVR XMEGA only.

-ee --eeprom: Write to EEPROM. tinyAVR, megaAVR, and AVR XMEGA only.

-us --usersignature: Write to user signature.

-fs --fuses: Write to fuses.

-lb --lockbits: Write to lockbits.

--values (value): Hex encoded values to write, e.g.: 0102040A0F.

-o --offset (offset): Values are written from this offset.

-v --verify: Verify memory contents after write.

Examples:

  • atprogram -t atmelice -i ISP -d atmega328pb write -lb --values c0

    Write value 0xc0 to ATmega328PB chip fuse lockbits.