I’m trying to repeat the FW3A 1+7+FET AUX mod (here), but using Anduril 2 instead of Anduril 1.
I looked at the A1 changes described here and applied them to the latest /lumintop/fw3a
A2 configuration (in a fork of @ToyKeeper 's repository).
Changes made were similar to those made for a lume1 single AUX configuration, as described here, but with a different starting point – e.g., just adding the various configuration for USE_INDICATOR_LED
and using the hardware definitions for the 1+7+FET driver.
Now, when compiling, I get the following error:
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: ui/anduril/anduril.elf section `.text' will not fit in region `text'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: region `text' overflowed by 546 bytes
I assume this means that the hex would be too large for the MCU.
I had noticed that there were already a few features turned off in the basic FW3A Anduril2 configuration, indicating a shortage of space:
// too big, turn off extra features
#undef USE_TACTICAL_MODE
#undef USE_SOS_MODE
so I turned off more features:
#undef USE_TACTICAL_MODE
#undef USE_SOS_MODE
#undef USE_BEACON_MODE
#undef USE_RAMP_AFTER_MOON_CONFIG
#undef USE_RAMP_SPEED_CONFIG
#undef USE_2C_STYLE_CONFIG
#undef USE_TACTICAL_STROBE_MODE
#undef USE_MOMENTARY_MODE
The result is still an error:
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: ui/anduril/anduril.elf section `.text' will not fit in region `text'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: region `text' overflowed by 212 bytes
At least the overflow is now only 212 bytes, instead of 546 bytes. However, I don’t know what other features I could turn off now to make it fit.
Can anyone help?
Am I on the right track assuming the build is too large, or does the error indicate something else?
Will it even be possible to add AUX handling to an Anduril 2 build for the 1+7+FET, or am I trying to do something that anyhow won’t work due to the old MCU? Has anyone else achieved this?
Any ideas would be much appreciated.