MUSTARDTIGERFPV
0d42d3c8e1
Move large repeater tables off classic ESP32 static DRAM
...
Classic ESP32 links into a dram0_0_seg of only 124,580 bytes: memory.ld
carves the BT controller's 0xdb5c (56,156) reservation off the 0x2c200
window before the application gets any. Three large objects dominated what
was left, and Tbeam_SX1262_repeater_observer_mqtt overran the build's 8 KiB
static reserve by 4,744 bytes.
Heap-allocate them instead, each with a defined behaviour when the
allocation fails:
- OtaContext: generalize the Companion's borrowed-storage path behind
OTA_DYNAMIC_CONTEXT and add OTA_HEAP_CONTEXT, which allocates the context
on first use and frees it once no transfer, apply or folder link needs it.
A repeater is idle nearly all the time, so the workspace is usually absent.
Exhaustion is reported to the caller and the operation declines.
- ClientACL: the client table becomes a pointer with a live capacity;
capacity 0 refuses new clients rather than writing through a null table.
- MyMesh flood packet filters: likewise, with flood_packet_filter_slots as
the live bound for every rule loop. At capacity 0 the node forwards
unfiltered, and both save paths refuse to write so a stored ruleset is
never replaced by an empty file.
Also override the Arduino SDK's weak btInUse() in simple_repeater so
initArduino() releases the BT controller memory to the heap. That grows the
runtime heap these tables now come from; it cannot recover the same
reservation from the linker's static window.
Static DRAM, classic ESP32:
Heltec_v2_repeater 108,332 -> 70,732
Tbeam_SX1262_repeater_observer_mqtt 121,132 -> 83,532 (was failing)
2026-09-09 01:24:00 -07:00
..
2026-09-08 16:02:16 -07:00
2026-08-31 14:29:42 -07:00
2026-09-08 21:44:57 -07:00
2026-08-23 19:22:45 -07:00
2026-09-08 21:44:57 -07:00
2026-09-09 01:24:00 -07:00
2026-08-27 18:58:37 -07:00
2026-08-30 19:26:15 -07:00
2026-08-25 10:27:26 -07:00
2026-08-28 17:31:28 -07:00
2026-09-08 22:47:15 -07:00
2025-10-06 12:57:04 +01:00
2026-08-23 14:45:15 +10:00
2026-08-23 14:45:15 +10:00
2026-08-26 15:42:12 -07:00
2026-08-26 15:42:12 -07:00
2026-08-26 15:42:12 -07:00
2026-08-14 23:42:25 +07:00
2026-08-14 23:42:25 +07:00
2026-09-02 17:32:43 -07:00
2026-09-02 03:44:28 -07:00
2026-07-20 22:55:58 -07:00
2026-07-20 22:55:58 -07:00
2026-07-30 01:18:21 -07:00
2025-10-30 16:45:50 +11:00
2026-09-08 20:07:25 -07:00
2026-09-08 12:21:30 -07:00
2026-09-01 20:51:43 -07:00
2026-08-27 01:22:18 -07:00
2026-08-27 01:22:18 -07:00
2026-08-07 16:24:53 -07:00
2026-09-07 23:46:55 -07:00
2026-09-08 01:15:19 -07:00
2025-06-06 15:30:35 +10:00
2026-09-08 18:55:00 -07:00
2026-09-09 01:24:00 -07:00
2026-09-09 01:24:00 -07:00
2026-08-30 19:26:15 -07:00
2026-08-30 19:26:15 -07:00
2026-08-30 19:26:15 -07:00
2026-09-02 19:23:56 -07:00
2026-08-30 19:26:15 -07:00
2026-08-23 15:29:30 -07:00
2026-09-08 21:44:57 -07:00
2026-09-08 22:07:30 -07:00
2026-09-08 21:44:57 -07:00
2026-07-25 07:59:44 -07:00
2026-08-28 17:31:28 -07:00
2026-08-28 17:31:28 -07:00
2026-09-01 20:51:43 -07:00
2026-08-28 18:39:26 -07:00
2026-09-08 16:02:16 -07:00
2026-09-08 16:02:16 -07:00
2026-09-08 16:02:16 -07:00
2026-09-01 20:51:43 -07:00
2026-08-28 18:39:26 -07:00
2026-09-08 18:55:00 -07:00
2026-09-08 18:55:00 -07:00
2026-08-25 10:27:04 -07:00
2026-08-29 16:57:44 -07:00
2026-08-31 14:29:42 -07:00
2026-09-02 03:44:28 -07:00
2026-08-28 18:39:26 -07:00
2026-08-28 18:39:26 -07:00
2026-09-08 12:21:30 -07:00
2026-09-08 12:21:30 -07:00
2026-09-08 12:21:30 -07:00
2026-09-08 12:21:30 -07:00
2026-08-11 12:19:41 -07:00
2026-09-08 12:21:30 -07:00
2026-09-08 12:21:30 -07:00
2026-08-26 15:42:12 -07:00
2026-08-07 16:24:53 -07:00
2026-08-28 17:31:28 -07:00
2026-08-24 19:42:55 +10:00
2026-09-05 08:59:50 -07:00
2026-09-07 16:28:02 -07:00
2026-08-12 11:50:25 -07:00
2026-08-11 14:25:52 -07:00
2026-07-24 02:16:47 -07:00
2026-08-28 16:36:34 -07:00
2026-08-25 22:51:22 -07:00
2026-04-27 15:32:02 +08:00
2026-09-03 23:58:32 -07:00
2026-08-25 21:58:08 -07:00
2026-08-18 23:17:42 -07:00
2026-08-23 15:29:30 -07:00
2026-08-11 14:25:52 -07:00
2026-07-21 00:01:01 -07:00
2025-09-06 14:15:40 +10:00
2026-08-30 19:26:15 -07:00
2026-08-30 19:26:15 -07:00
2026-07-11 12:45:02 -07:00
2026-08-24 17:12:56 +10:00
2026-08-30 19:26:15 -07:00
2026-09-08 21:44:57 -07:00
2026-08-07 14:26:31 -07:00
2026-08-31 14:29:42 -07:00
2026-08-31 14:29:42 -07:00
2026-08-31 14:29:42 -07:00
2026-08-28 18:39:26 -07:00
2026-07-24 02:16:47 -07:00
2026-08-26 15:42:12 -07:00
2026-08-19 13:45:47 -07:00
2026-08-28 18:39:26 -07:00
2026-07-27 22:29:11 -07:00
2026-07-24 02:16:47 -07:00
2026-08-26 15:42:12 -07:00
2026-08-26 15:42:12 -07:00
2026-07-24 02:16:47 -07:00
2026-07-18 18:44:37 -07:00
2026-08-28 18:39:26 -07:00
2026-08-28 18:39:26 -07:00
2026-07-21 16:45:39 -07:00
2026-08-28 18:39:26 -07:00
2026-08-28 18:39:26 -07:00
2026-08-26 15:42:12 -07:00
2026-08-26 15:42:12 -07:00
2026-07-18 16:41:27 -07:00
2026-08-14 08:53:02 -07:00
2026-07-18 14:55:21 -07:00
2026-08-19 13:45:47 -07:00
2026-09-01 20:51:43 -07:00
2026-09-01 20:51:43 -07:00
2026-09-08 16:17:43 -07:00
2026-09-08 16:17:43 -07:00
2026-09-04 02:01:40 -07:00
2026-08-11 13:28:43 -07:00
2026-08-11 13:28:43 -07:00
2026-09-02 17:32:43 -07:00
2026-07-21 00:01:01 -07:00
2026-08-06 15:33:40 -07:00
2026-08-28 18:39:26 -07:00
2026-07-21 00:01:01 -07:00
2026-02-18 22:32:01 +07:00
2026-07-22 00:43:38 -07:00
2026-07-17 00:35:51 -07:00
2026-07-13 13:18:49 -07:00
2026-08-07 16:24:53 -07:00
2026-08-07 16:24:53 -07:00
2026-08-11 12:19:41 -07:00
2026-09-03 23:58:32 -07:00
2026-08-03 22:57:12 +02:00
2026-07-30 01:18:21 -07:00
2026-03-08 11:46:20 -07:00
2026-07-22 00:43:38 -07:00
2026-08-30 19:26:15 -07:00
2026-08-30 19:26:15 -07:00
2026-08-26 15:42:12 -07:00
2026-09-03 23:58:32 -07:00
2026-03-28 17:08:32 -07:00
2026-07-22 00:43:38 -07:00
2026-07-17 00:35:51 -07:00
2026-07-17 00:35:51 -07:00
2026-07-25 07:59:44 -07:00
2026-09-04 08:34:34 -07:00
2026-09-02 03:44:28 -07:00
2026-08-13 00:52:17 -07:00
2026-08-30 19:26:15 -07:00
2026-08-30 19:26:15 -07:00
2026-08-11 12:19:41 -07:00
2026-08-11 12:19:41 -07:00
2026-09-08 19:48:15 -07:00
2026-08-10 23:47:02 -07:00
2025-11-07 14:42:06 +11:00
2025-11-04 01:21:56 +11:00
2026-07-25 07:59:44 -07:00
2026-08-28 17:31:28 -07:00
2026-09-02 03:44:28 -07:00
2026-09-04 17:18:54 -07:00
2026-09-04 17:18:54 -07:00
2026-09-01 20:51:43 -07:00
2026-08-03 02:07:03 -07:00
2026-08-03 02:07:03 -07:00
2026-08-28 16:55:40 -07:00
2026-08-03 02:07:03 -07:00
2026-07-20 15:47:03 +01:00
2026-09-08 18:36:23 -07:00
2026-09-08 21:44:57 -07:00
2026-08-28 21:01:17 -07:00
2026-07-29 01:51:01 -07:00
2026-07-29 13:13:37 -07:00
2026-08-28 16:36:34 -07:00
2026-08-03 16:23:23 -07:00
2026-08-30 19:26:15 -07:00
2026-08-15 18:12:09 -07:00