follow-up: I think this may be similar to the cached copy of WireIMXRT.cpp issue as described here:
I did a “full clean” and now the platformIO build works; the memory usage info appears correct:
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:13172, data:5304, headers:9168 free for files:8098820
teensy_size: RAM1: variables:5952, code:10096, padding:22672 free for local variables:485568
teensy_size: RAM2: variables:12416 free for malloc/new:511872
I thought that creating an entirely new project would imply a clean was done, but it seems like that’s not the case somehow…
So that fixed the Scanner project. If I go back to my own project, running a full clean doesn’t fix the issue - still digging into that one.