Save RAK repeater flash while retaining fast field arithmetic

Use compact scalar crypto, reviewed GNSS version parsing and shared CLI reply copies for RAK3401/RAK4631 repeaters. Preserve keys, protocols, commands and configured capacities.

Both Reduced images save 11,580 bytes. SWD measurements on the RAK3401 found scalar-only signing still near 50.9 ms and key exchange near 38 ms. Keep compact field arithmetic off: its extra 4.3 KiB saving adds about a quarter second and delays radio servicing.

Validate Full and Reduced production OTA packages on both boards, focused crypto/GPS/CLI tests, and linked ARM crypto outputs. Include the RAM benchmark harness and scoped results. No live RF packet-loss qualification is claimed.
This commit is contained in:
mikecarper committed 2026-10-27 11:41:32 -07:00
1 parent 308fec1162
commit 08b1c8826c
9 files changed
+1256 -10

No files matched your search

+5
View File
@@ -584,6 +584,11 @@ reduction does not disable generic I2C or unrelated board-integrated peripherals
These reduced RAK profiles keep their own readable OTA target name and omit
the all-board name catalog. Updates for other targets display numeric IDs;
OTA compatibility checks and transfers are unchanged.
RAK3401/RAK4631 Repeater builds also use compact scalar arithmetic, shared CLI
reply copies, and a smaller GPS version parser. Keys, packet formats, commands,
responses and GPS support are preserved. Fast field arithmetic remains enabled
to avoid the long crypto pause; see the
[measured size and timing comparison](test-results/rak_compact_crypto_2026-10-27.md).
Reduced RAK3401 and RAK4631 targets retain INA219/INA226/INA260/INA3221 as
voltage/current entries in the optional sensor table. They are not the only I2C
users: the SSD1306 OLED, supported autodiscovered RTCs, and RAK12500 GPS remain