aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build.sh2
-rw-r--r--hwdef-Sofirn_SP10-Pro.h18
2 files changed, 10 insertions, 10 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 58896a5..4cb03b4 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -32,7 +32,7 @@ export DFPFLAGS="-B $ATTINY_DFP/gcc/dev/$MCU/ -I $ATTINY_DFP/include/"
export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -fgnu89-inline -fwhole-program -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums $DFPFLAGS"
export OFLAGS="-Wall -g -Os -mmcu=$MCU -mrelax $DFPFLAGS"
export LDFLAGS="-fgnu89-inline"
-export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'
+export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex --remove-section .fuse'
export OBJS=$PROGRAM.o
for arg in "$*" ; do
diff --git a/hwdef-Sofirn_SP10-Pro.h b/hwdef-Sofirn_SP10-Pro.h
index e47131a..eee2f72 100644
--- a/hwdef-Sofirn_SP10-Pro.h
+++ b/hwdef-Sofirn_SP10-Pro.h
@@ -122,19 +122,19 @@ inline void hwdef_setup() {
}
-// set fuses, these carry over to the ELF file but not the HEX file
+// set fuses, these carry over to the ELF file
// we need this for enabling BOD in Active Mode from the factory.
// settings can be verified / dumped from the ELF file using this
// command: avr-objdump -d -S -j .fuse anduril.elf
FUSES = {
- .WDTCFG = FUSE_WDTCFG_DEFAULT, /* Watchdog Configuration */
- .BODCFG = FUSE_ACTIVE0_bm, /* BOD Configuration */
- .OSCCFG = FUSE_OSCCFG_DEFAULT, /* Oscillator Configuration */
- .TCD0CFG = FUSE_TCD0CFG_DEFAULT, /* TCD0 Configuration */
- .SYSCFG0 = FUSE_SYSCFG0_DEFAULT, /* System Configuration 0 */
- .SYSCFG1 = FUSE_SYSCFG1_DEFAULT, /* System Configuration 1 */
- .APPEND = FUSE_APPEND_DEFAULT, /* Application Code Section End */
- .BOOTEND = FUSE_BOOTEND_DEFAULT, /* Boot Section End */
+ .WDTCFG = FUSE_WDTCFG_DEFAULT, // Watchdog Configuration
+ .BODCFG = FUSE_ACTIVE0_bm, // BOD Configuration
+ .OSCCFG = FUSE_OSCCFG_DEFAULT, // Oscillator Configuration
+ .TCD0CFG = FUSE_TCD0CFG_DEFAULT, // TCD0 Configuration
+ .SYSCFG0 = FUSE_SYSCFG0_DEFAULT, // System Configuration 0
+ .SYSCFG1 = FUSE_SYSCFG1_DEFAULT, // System Configuration 1
+ .APPEND = FUSE_APPEND_DEFAULT, // Application Code Section End
+ .BOOTEND = FUSE_BOOTEND_DEFAULT, // Boot Section End
};
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.