Skip to content

Commit

Permalink
Add modified hex file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MCUdude committed Oct 19, 2020
1 parent f5c2041 commit 49878ac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions avr/firmwares/CLI flash script/Load_firmware.bat
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SET LFUSE=0x1E
SET EFUSE=0xC6

:: File spesific
SET FLASH_FILE=../mEDBG_UPDI_1.13.hex
SET FLASH_FILE=../mEDBG_UPDI_1.13_AREF_fix.hex
SET EEPROM_FILE=../mEDBG_UPDI_1.13_modified_suffer.eep

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

PAUSE

:end
:end
4 changes: 2 additions & 2 deletions avr/firmwares/CLI flash script/Load_firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ LFUSE="0x1E"
EFUSE="0xC6"

# File spesific
FLASH_FILE="../mEDBG_UPDI_1.13.hex"
FLASH_FILE="../mEDBG_UPDI_1.13_AREF_fix.hex"
EEPROM_FILE="../mEDBG_UPDI_1.13_modified_suffer.eep"

# Avrdude command
$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
$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

Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
:1028D000B0F420E82093610010936100002311F40C
:1028E00000E103C0013021F408E00093A90208953B
:1028F000043011F401E0F9CF00E00093A90208953B
:1029000006E800937A000EE100937C0004E610E0F4
:1029000006E800937A000EE500937C0004E610E0F0
:102910000E94240200917A00006500937A000091E1
:102920007A00102F14FFFBCF00917A00006500930E
:102930007A0000917A00102F14FFFBCF00917800ED
Expand Down
2 changes: 1 addition & 1 deletion avr/scripts/avrdude-wrapper.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set runtimePlatformPath=%~7
set buildPath=%~8

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)
"%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
"%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

set finalExitStatus=%errorlevel%

Expand Down
2 changes: 1 addition & 1 deletion avr/scripts/avrdude-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readonly serialPort="$5"
readonly uploadSpeed="$6"
readonly runtimePlatformPath="$7"

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
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
# The failure was caused by the expected verification error at 0x7000 so don't report an upload error
finalExitStatus=0
# 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
Expand Down

0 comments on commit 49878ac

Please sign in to comment.