Reject truncated anonymous reply paths and advert metadata before copying, while preserving timestamp-only empty-password logins. Limit room posting to read-write/admin ACL roles, retain inbox frames until the requesting transport accepts them, and lock raw LittleFS traversal against concurrent writes. Separate ISR event generations from main-loop radio state. Confirm RX/TX IRQs, detach concrete wrapper callbacks safely, and discard inconsistent LR2021 FIFO snapshots before rearming. Preserve bridge RX frames through packet-pool exhaustion and bound ESP-NOW retries and missing-callback recovery. Screen RTC register layouts without losing DS1307 startup, and ignore poisoned future contact timestamps during clock bootstrap. Keep the nRF52 loop stack at 8 KiB while reducing the OTA listing call chain from 7,832 to 6,056 static bytes. Retain all target names through lossless Full Companion compression and the canonical size optimizer. Preserve constrained STM32 filesystems and bind corrected ESP32 UART/OLED budgets to source size assertions. Document the separately measured preexisting W12 package limits. Adapted for this branch from meshcore-dev/MeshCore PRs #3521, #3340, #3362, #2062, #3503, #3038, #3534, #3544 and #3512. Validation: 1,829 native tests; sanitized parser, inbox, LittleFS, ACL, clock, RTC, IRQ/FIFO and bridge fault tests; 332 additional Companion cases; real RAK4631 Full and both repeater profiles, G2 Full/standard, V3 Full and both constrained STM32 release recipes. Radio-family compile coverage continues separately; W12 full/portable package guards remain enforced.
98 lines
3.0 KiB
INI
98 lines
3.0 KiB
INI
[rak3x72]
|
|
extends = stm32_base
|
|
board = rak3172
|
|
board_upload.maximum_size = 229376 ; 32kb for FS
|
|
build_flags = ${stm32_base.build_flags}
|
|
-D RAK_3X72
|
|
-D RADIO_CLASS=CustomSTM32WLx
|
|
-D WRAPPER_CLASS=CustomSTM32WLxWrapper
|
|
-D SPI_INTERFACES_COUNT=0
|
|
-D RX_BOOSTED_GAIN=true
|
|
; -D STM32WL_TCXO_VOLTAGE=1.6 ; defaults to 0 if undef
|
|
; -D LORA_TX_POWER=14 ; Defaults to 22 for HP, 14 is for LP version
|
|
-I variants/rak3x72
|
|
build_src_filter = ${stm32_base.build_src_filter}
|
|
+<../variants/rak3x72>
|
|
|
|
[env:RAK_3x72_repeater]
|
|
extends = rak3x72
|
|
platform_packages = platformio/toolchain-gccarmnoneeabi@^1.140201.0
|
|
board_upload.maximum_size = 245760 ; 240 KiB app, 16 KiB LittleFS
|
|
build_unflags = -Os
|
|
build_flags = ${rak3x72.build_flags}
|
|
-Oz ; strongest size profile preserves the deployed 16 KiB filesystem boundary
|
|
-flto
|
|
-fno-inline-small-functions ; reduce flash without moving the deployed filesystem boundary
|
|
-fipa-pta
|
|
-fmerge-all-constants
|
|
-fno-ipa-cp-clone
|
|
-fno-partial-inlining
|
|
-fno-semantic-interposition
|
|
-fno-unwind-tables
|
|
-fno-asynchronous-unwind-tables
|
|
-fno-schedule-insns2
|
|
-Wl,--sort-section=alignment
|
|
-D LFS_FLASH_TOTAL_SIZE=16384
|
|
-D MESH_ENABLE_CLOCK_SYNC=0 ; preserve the 16 KiB filesystem on this 256 KiB part
|
|
-D MESH_ENABLE_FLOOD_GROUP_MODERATION=0 ; keep core routing and radio scheduling in flash
|
|
-D MESH_PACKET_LOGGING_COMPACT=1 ; retain complete RX/TX bytes without the duplicate parsed RX line
|
|
-D ADVERT_NAME='"RAK3x72 Repeater"'
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D MAX_NEIGHBOURS=50
|
|
build_src_filter = ${rak3x72.build_src_filter}
|
|
+<../examples/simple_repeater/*.cpp>
|
|
|
|
[env:RAK_3x72_sensor]
|
|
extends = rak3x72
|
|
build_unflags = -Os
|
|
build_flags = ${rak3x72.build_flags}
|
|
-Oz
|
|
-flto
|
|
-fno-inline-small-functions
|
|
-fipa-pta
|
|
-fmerge-all-constants
|
|
-fno-ipa-cp-clone
|
|
-fno-partial-inlining
|
|
-fno-semantic-interposition
|
|
-fno-unwind-tables
|
|
-fno-asynchronous-unwind-tables
|
|
-D ADVERT_NAME='"RAK3x72 Sensor"'
|
|
-D ADMIN_PASSWORD='"password"'
|
|
build_src_filter = ${rak3x72.build_src_filter}
|
|
+<../examples/simple_sensor>
|
|
|
|
[env:RAK_3x72_companion_radio_usb]
|
|
extends = rak3x72
|
|
platform_packages = platformio/toolchain-gccarmnoneeabi@^1.140201.0
|
|
build_unflags = -Os
|
|
build_flags = ${rak3x72.build_flags}
|
|
-D ED25519_COMPACT_SHA512=1 ; same hash rounds, compact loop preserves the filesystem boundary
|
|
-Oz
|
|
-flto
|
|
-fno-inline-small-functions
|
|
-fno-tree-dominator-opts ; preserve the 32 KiB filesystem with the stability guards
|
|
-fipa-pta
|
|
-fmerge-all-constants
|
|
-fno-ipa-cp-clone
|
|
-fno-partial-inlining
|
|
-fno-jump-tables
|
|
-fno-tree-switch-conversion
|
|
-fno-semantic-interposition
|
|
-fno-unwind-tables
|
|
-fno-asynchronous-unwind-tables
|
|
-fno-schedule-insns2
|
|
-Wl,--sort-section=alignment
|
|
; -D FORMAT_FS=true
|
|
-D MAX_CONTACTS=100
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D ENABLE_USB_INTERFACE
|
|
build_src_filter = ${rak3x72.build_src_filter}
|
|
+<../examples/companion_radio/*.cpp>
|
|
lib_deps = ${rak3x72.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:RAK_3x72_kiss_modem]
|
|
extends = rak3x72
|
|
build_src_filter = ${rak3x72.build_src_filter}
|
|
+<../examples/kiss_modem/>
|