Skip to content

Commit 49878ac

Browse files
committed
Add modified hex file
Thanks to @SpenceKode we don't need to modify our Pro Micro and solder a wire from the VCC pin to the AREF pin. It's done internally now.
1 parent f5c2041 commit 49878ac

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

avr/firmwares/CLI flash script/Load_firmware.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ SET LFUSE=0x1E
2727
SET EFUSE=0xC6
2828

2929
:: File spesific
30-
SET FLASH_FILE=../mEDBG_UPDI_1.13.hex
30+
SET FLASH_FILE=../mEDBG_UPDI_1.13_AREF_fix.hex
3131
SET EEPROM_FILE=../mEDBG_UPDI_1.13_modified_suffer.eep
3232

3333
@ECHO on
@@ -37,4 +37,4 @@ SET EEPROM_FILE=../mEDBG_UPDI_1.13_modified_suffer.eep
3737

3838
PAUSE
3939

40-
:end
40+
:end

avr/firmwares/CLI flash script/Load_firmware.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ LFUSE="0x1E"
3030
EFUSE="0xC6"
3131

3232
# File spesific
33-
FLASH_FILE="../mEDBG_UPDI_1.13.hex"
33+
FLASH_FILE="../mEDBG_UPDI_1.13_AREF_fix.hex"
3434
EEPROM_FILE="../mEDBG_UPDI_1.13_modified_suffer.eep"
3535

3636
# Avrdude command
37-
$AVRDUDE_PATH -C$AVRDUDE_CONF_PATH -p$TARGET -c$PROGRAMMER $EXTRA_FLAGS -e -Uhfuse:w:$HFUSE:m -Ulfuse:w:$LFUSE:m -Uefuse:w:$EFUSE:m -Ueeprom:w:$EEPROM_FILE -Uflash:w:$FLASH_FILE
37+
$AVRDUDE_PATH -C$AVRDUDE_CONF_PATH -p$TARGET -c$PROGRAMMER $EXTRA_FLAGS -e -Uhfuse:w:$HFUSE:m -Ulfuse:w:$LFUSE:m -Uefuse:w:$EFUSE:m -Ueeprom:w:$EEPROM_FILE -Uflash:w:$FLASH_FILE
3838

avr/firmwares/mEDBG_UPDI_1.13.hex avr/firmwares/mEDBG_UPDI_1.13_AREF_fix.hex

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
:1028D000B0F420E82093610010936100002311F40C
655655
:1028E00000E103C0013021F408E00093A90208953B
656656
:1028F000043011F401E0F9CF00E00093A90208953B
657-
:1029000006E800937A000EE100937C0004E610E0F4
657+
:1029000006E800937A000EE500937C0004E610E0F0
658658
:102910000E94240200917A00006500937A000091E1
659659
:102920007A00102F14FFFBCF00917A00006500930E
660660
:102930007A0000917A00102F14FFFBCF00917800ED

avr/scripts/avrdude-wrapper.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set runtimePlatformPath=%~7
1515
set buildPath=%~8
1616

1717
REM Run the avrdude command and redirect all output to a text file (necessary in order to both display the output on the console and run findstr on it)
18-
"%avrdudePath%" "-C%configPath%" -v -p%buildMCU% -c%uploadProtocol% "-P%serialPort%" -b%uploadSpeed% -D "-Ueeprom:w:%runtimePlatformPath%/firmwares/mEDBG_UPDI_1.13_modified_suffer.eep:i" "-Uflash:w:%runtimePlatformPath%/firmwares/mEDBG_UPDI_1.13.hex:i"> "%buildPath%/avrdudeoutput.txt" 2>&1
18+
"%avrdudePath%" "-C%configPath%" -v -p%buildMCU% -c%uploadProtocol% "-P%serialPort%" -b%uploadSpeed% -D "-Ueeprom:w:%runtimePlatformPath%/firmwares/mEDBG_UPDI_1.13_modified_suffer.eep:i" "-Uflash:w:%runtimePlatformPath%/firmwares/mEDBG_UPDI_1.13_AREF_fix.hex:i"> "%buildPath%/avrdudeoutput.txt" 2>&1
1919

2020
set finalExitStatus=%errorlevel%
2121

avr/scripts/avrdude-wrapper.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readonly serialPort="$5"
99
readonly uploadSpeed="$6"
1010
readonly runtimePlatformPath="$7"
1111

12-
if "${avrdudePath}" "-C$configPath" -v "-p$buildMCU" "-c$uploadProtocol" "-P$serialPort" "-b$uploadSpeed" -D "-Ueeprom:w:$runtimePlatformPath/firmwares/mEDBG_UPDI_1.13_modified_suffer.eep:i" "-Uflash:w:$runtimePlatformPath/firmwares/mEDBG_UPDI_1.13.hex:i" 2>&1 | tee /dev/stderr | grep --silent "verification error, first mismatch at byte 0x7000"; then
12+
if "${avrdudePath}" "-C$configPath" -v "-p$buildMCU" "-c$uploadProtocol" "-P$serialPort" "-b$uploadSpeed" -D "-Ueeprom:w:$runtimePlatformPath/firmwares/mEDBG_UPDI_1.13_modified_suffer.eep:i" "-Uflash:w:$runtimePlatformPath/firmwares/mEDBG_UPDI_1.13_AREF_fix.hex:i" 2>&1 | tee /dev/stderr | grep --silent "verification error, first mismatch at byte 0x7000"; then
1313
# The failure was caused by the expected verification error at 0x7000 so don't report an upload error
1414
finalExitStatus=0
1515
# It's necessary to have a short delay here, otherwise the note below gets mixed in with the avrdude output in the Arduino IDE console

0 commit comments

Comments
 (0)