Skip to content

Commit 84db26c

Browse files
authored
Merge pull request #688 from ckormanyos/avrdude_batches
Update avrdude batches
2 parents ce9d46f + c18f729 commit 84db26c

5 files changed

Lines changed: 82 additions & 3 deletions

File tree

ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/11_07.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
rem ///////////////////////////////////////////////////////////////////////////////
2+
rem // Copyright Christopher Kormanyos 2007 - 2025.
3+
rem // Distributed under the Boost Software License,
4+
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
5+
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
rem //
7+
18
echo off
29

310
set AVRDUDE=.\avrdude.exe

ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/2560.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
rem ///////////////////////////////////////////////////////////////////////////////
2+
rem // Copyright Christopher Kormanyos 2007 - 2025.
3+
rem // Distributed under the Boost Software License,
4+
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
5+
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
rem //
7+
18
echo off
29

310
set AVRDUDE=.\avrdude.exe

ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/328p.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
rem ///////////////////////////////////////////////////////////////////////////////
2+
rem // Copyright Christopher Kormanyos 2007 - 2025.
3+
rem // Distributed under the Boost Software License,
4+
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
5+
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
rem //
7+
18
echo off
29

310
set AVRDUDE=.\avrdude.exe
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
rem ///////////////////////////////////////////////////////////////////////////////
2+
rem // Copyright Christopher Kormanyos 2007 - 2025.
3+
rem // Distributed under the Boost Software License,
4+
rem // Version 1.0. (See accompanying file LICENSE_1_0.txt
5+
rem // or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
rem //
7+
8+
echo off
9+
10+
set AVRDUDE=.\avrdude.exe
11+
12+
set HEX=../../../../bin/ref_app.hex
13+
14+
rem Erase the chip.
15+
echo "Erase the chip."
16+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -e
17+
echo.
18+
19+
rem Flash the HEX-file.
20+
echo "Flash the HEX-file."
21+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:w:%HEX%:i
22+
echo.
23+
24+
rem Verify the flash.
25+
echo "Verify the flash."
26+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:v:%HEX%:i
27+
echo.

ref_app/tools/AVR/avrdude/avrdude-v8.0-windows-x64/readme.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ Consider the flash file `ref_app.hex` which, after
66
building the reference application `ref_app`, will be found in the `bin` directory.
77
These instructions are for modern `Win*`.
88

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

1311
## Getting Started
1412

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

2321
### Programming the ARDUINO UNO with ATMEGA328P Chip
2422

23+
See also the batch file [328p_arduino.bat](./328p_arduino.bat).
24+
When using this batch file, please note that the `COM` serial port may differ
25+
from `COM5` which is shown below as an example.
26+
27+
```cmd
28+
echo off
29+
30+
set AVRDUDE=.\avrdude.exe
31+
32+
set HEX=../../../../bin/ref_app.hex
33+
34+
rem Erase the chip.
35+
echo "Erase the chip."
36+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -e
37+
echo.
38+
39+
rem Flash the HEX-file.
40+
echo "Flash the HEX-file."
41+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:w:%HEX%:i
42+
echo.
43+
44+
rem Verify the flash.
45+
echo "Verify the flash."
46+
%AVRDUDE% -c arduino -p m328p -P COM5 -b 115200 -U flash:v:%HEX%:i
47+
echo.
48+
```
49+
50+
### Programming the ARDUINO UNO with ATMEGA328P Chip over AVR-ISP2
51+
52+
The programming device being used is the AVRISP mkII, which is an older USB-based
53+
programmer. Drivers can be installed along with with ATMEL(R) Studio.
54+
Also alternative open source USB driver-options are available.
55+
2556
See also the batch file [328p.bat](./328p.bat).
2657

2758
```cmd

0 commit comments

Comments
 (0)