Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 922fb60

Browse files
committed
changed Leonardo PID to 0x0032 for Diskloader testing. updated .inf to match.
1 parent 642eaf6 commit 922fb60

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bootloaders/diskloader/DiskLoader-Leonardo.hex

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
:10712000750069006E006F0020004C0065006F0064
2020
:107130006E006100720064006F001803410072006D
2121
:107140006400750069006E006F0020004C004C0068
22-
:1071500043001201000200000040412334000001FE
23-
:10716000010200011201000202000040412334002C
22+
:107150004300120100020000004041233200000100
23+
:10716000010200011201000202000040412332002E
2424
:1071700000010102000100C180813D3C11241FBEBD
2525
:10718000CFEFDAE0DEBFCDBF11E0A0E0B1E0E6EF87
2626
:10719000FAE702C005900D92A830B107D9F711E0C7

bootloaders/diskloader/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ AVR_FREQ = 16000000L
1414
# Specify the Arduino model using the assigned PID. This is used by Descriptors.c
1515
# to set PID and product descriptor string
1616
# Arduino Leonardo PID
17-
ARDUINO_MODEL_PID = 0x0034
17+
ARDUINO_MODEL_PID = 0x0032
1818
# Arduino Micro PID
19-
#ARDUINO_MODEL_PID = 0x0035
19+
#ARDUINO_MODEL_PID = 0x0033
2020

2121
# Change if your programmer is different
2222
AVRDUDE_PROGRAMMER = avrispmkII

bootloaders/diskloader/src/Platform.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ typedef unsigned char u8;
2525
typedef unsigned short u16;
2626
typedef unsigned long u32;
2727

28-
#define USB_PID_LEONARDO 0x0034
29-
#define USB_PID_MICRO 0x0035
28+
#define USB_PID_LEONARDO 0x0032
29+
#define USB_PID_MICRO 0x0033
3030
#define USB_VID 0x2341 // arduino LLC vid
31-
#define USB_PID ARDUINO_MODEL_PID // passed in by Makefile - 0x0034 for Leonardo, 0x0035 for MIcro
31+
#define USB_PID ARDUINO_MODEL_PID // passed in by Makefile - 0x0032 for Leonardo, 0x0033 for Micro
3232

3333
#define min(a,b) ((a)<(b)?(a):(b))
3434

0 commit comments

Comments
 (0)