Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/11_07.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
rem ///////////////////////////////////////////////////////////////////////////////
rem // Copyright Christopher Kormanyos 2007 - 2025.
rem // Distributed under the Boost Software License,
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
rem //

echo off

set AVRDUDE=.\avrdude.exe
Expand Down
7 changes: 7 additions & 0 deletions ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/2560.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
rem ///////////////////////////////////////////////////////////////////////////////
rem // Copyright Christopher Kormanyos 2007 - 2025.
rem // Distributed under the Boost Software License,
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
rem //

echo off

set AVRDUDE=.\avrdude.exe
Expand Down
7 changes: 7 additions & 0 deletions ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/328p.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
rem ///////////////////////////////////////////////////////////////////////////////
rem // Copyright Christopher Kormanyos 2007 - 2025.
rem // Distributed under the Boost Software License,
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
rem //

echo off

set AVRDUDE=.\avrdude.exe
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
rem ///////////////////////////////////////////////////////////////////////////////
rem // Copyright Christopher Kormanyos 2007 - 2025.
rem // Distributed under the Boost Software License,
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
rem //

echo off

set AVRDUDE=.\avrdude.exe

set HEX=../../../../bin/ref_app.hex

rem Erase the chip.
echo "Erase the chip."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -e
echo.

rem Flash the HEX-file.
echo "Flash the HEX-file."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:w:%HEX%:i
echo.

rem Verify the flash.
echo "Verify the flash."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:v:%HEX%:i
echo.
37 changes: 34 additions & 3 deletions ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Consider the flash file `ref_app.hex` which, after
building the reference application `ref_app`, will be found in the `bin` directory.
These instructions are for modern `Win*`.

The programming device being used is the AVRISP mkII, which is an older USB-based
programmer. Drivers can be installed along with with ATMEL(R) Studio.
Also alternative open source USB driver-options are available.
Programming uses an ARDUIONO board out of the box with its USB/serial interface.

## Getting Started

Expand All @@ -22,6 +20,39 @@ or the ARDUINO MEGA 2560 with the ATMEGA2560 chip.

### Programming the ARDUINO UNO with ATMEGA328P Chip

See also the batch file [328p_arduino.bat](./328p_arduino.bat).
When using this batch file, please note that the `COM` serial port may differ
from `COM5` which is shown below as an example.

```cmd
echo off

set AVRDUDE=.\avrdude.exe

set HEX=../../../../bin/ref_app.hex

rem Erase the chip.
echo "Erase the chip."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -e
echo.

rem Flash the HEX-file.
echo "Flash the HEX-file."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:w:%HEX%:i
echo.

rem Verify the flash.
echo "Verify the flash."
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:v:%HEX%:i
echo.
```

### Programming the ARDUINO UNO with ATMEGA328P Chip over AVR-ISP2

The programming device being used is the AVRISP mkII, which is an older USB-based
programmer. Drivers can be installed along with with ATMEL(R) Studio.
Also alternative open source USB driver-options are available.

See also the batch file [328p.bat](./328p.bat).

```cmd
Expand Down