aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorGabriel Hart2022-04-12 00:05:27 -0500
committerGabriel Hart2022-04-12 00:05:27 -0500
commit97063be85d0f964ba65a2f1ca355d818a5d93ab5 (patch)
tree786498d0e03679945cf974bcc85b58e13a94c5e2 /spaghetti-monster
parentMerge from TK's main A2 branch thru Rev 647 which includes several patches fo... (diff)
downloadanduril-97063be85d0f964ba65a2f1ca355d818a5d93ab5.tar.gz
anduril-97063be85d0f964ba65a2f1ca355d818a5d93ab5.tar.bz2
anduril-97063be85d0f964ba65a2f1ca355d818a5d93ab5.zip
Added FUSES section to SP10 Pro for building ELF file with BOD Active fuse setting
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/cfg-sofirn-sp10-pro.h15
-rw-r--r--spaghetti-monster/anduril/version.h5
2 files changed, 16 insertions, 4 deletions
diff --git a/spaghetti-monster/anduril/cfg-sofirn-sp10-pro.h b/spaghetti-monster/anduril/cfg-sofirn-sp10-pro.h
index bcfc80e..a3463ae 100644
--- a/spaghetti-monster/anduril/cfg-sofirn-sp10-pro.h
+++ b/spaghetti-monster/anduril/cfg-sofirn-sp10-pro.h
@@ -71,3 +71,18 @@
// enable factory reset on 13H without loosening tailcap
#define USE_SOFT_FACTORY_RESET
+
+// set fuses, these carry over to the ELF file but not the HEX 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 */
+}; \ No newline at end of file
diff --git a/spaghetti-monster/anduril/version.h b/spaghetti-monster/anduril/version.h
index 1bc3984..9f811f4 100644
--- a/spaghetti-monster/anduril/version.h
+++ b/spaghetti-monster/anduril/version.h
@@ -1,4 +1 @@
-// this file is replaced automatically by the build script
-// set your own date here if you're not using the build script
-// otherwise, default to first human contact with the moon
-#define VERSION_NUMBER "19690720" \ No newline at end of file
+#define VERSION_NUMBER "20220411"
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.