5 Commits
Author SHA1 Message Date
rich f53f851b0e palm-client: with the Slot link, the radio's 'message waiting' push wakes the Visor. The slot interrupt handler (SbIrq) spots the frame as it drains the FIFO and, as the Springboard guide describes, holds IRQ* (THR empty) to have the system woken, then keeps it awake 10 s for the app to sync. With Check when closed on, the app leaves a copy of the handler in system-owned memory as it closes (SbWakeArm), with the module asleep between frames; it posts a card event whose handler sets the app's alarm for now, so the closed-app check runs at once. check_sections.py checks that the copied block (SbCoreStart..SbCoreEnd) is whole and refers only to itself. The Slot link no longer reconnects after sleep. Host-tested on the simulated module; untested on hardware 2026-11-08 19:17:30 -05:00
rich 50a5a486db palm-client: a fifth code segment, and Node, Settings, Font Preview and Add Channel move from vmcode2 (31.1 KB) to vmcode4, leaving vmcode2 room for the hooks the next features need. protocol2.c (vmcode5, host-tested) has the newer companion commands: trace path, stats, battery, a contact's route, plus meshcore:// share links and #hashtags in text 2026-11-05 14:43:50 -05:00
rich 2eda7e1212 palm-client: fourth code segment (map, flood scopes); title status no longer leaves text behind 2026-11-02 13:12:30 -05:00
rich 55b77c84a7 palm-client: third code section (vmcode3); checker resolves COFF symbol sections
visormesh.def adds vmcode3 and sections.h VM_SECT3, ahead of new screens
(segment 2 is at 27 KB). check_sections.py checks every extra section, and
now maps COFF symbols' (sec N) to section names: before, it only resolved
section symbols such as .text, not named ones. sect2.py takes --sect3.
2026-11-01 21:49:29 -05:00
rich c713d8ba34 palm-client: modules into segment 2 with a build check; better Unicode display
Segment 1 was back at 27 KB. Settings, Contacts, Channel, Home, Node,
convos, messages, contacts, channels, rowlist and draw move to vmcode2:
segment 1 is now 10.3 KB, segment 2 23.4 KB. tools/sect2.py adds the
VM_SECT2 static declarations.

Checked in the compiled code, the rules in sections.h were too cautious:
literals in a vmcode2 function are emitted into vmcode2, a file's static
const data and calls to unannotated functions go through the __text__
base, and taking a vmcode2 function's address (event handlers, callbacks)
gives its real address. The real traps are shared extern const tables and
-fwritable-strings (PC-relative into .data). tools/check_sections.py runs
after every link and fails the build on any PC-relative reference from
vmcode2 to outside it; python3 added to the toolchain image for it.

Unicode: characters past Latin-1 all became '?', and Windows-1252 quotes
and dashes had no glyph in the small font. Now arrows, check marks, stars,
bullets and node-type marks map to the font's UI symbols, typographic
quotes and dashes to ASCII, any emoji to a new smiley glyph, and
variation selectors / zero-width joiners are dropped.
2026-11-01 17:29:20 -05:00