Thank you @Bernard It seems that something is wrong/different with the latest toolchain for VS-code.
You are using an older version than platformio will install now.
latest with Platform 4.18.0:
also the resulting code size is much smaller with your environement:
4.18.0:
I will try to move back to your version / platform
You are using an older version than platformio will install now.
Code:
PLATFORM: Teensy (4.13.1) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.154.0 (1.54)
- tool-teensy @ 1.155.0 (1.55)
- toolchain-gccarmnoneeabi @ 1.50401.190816 (5.4.1)
latest with Platform 4.18.0:
Code:
PLATFORM: Teensy (4.18.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy @ 1.158.0 (1.58)
- tool-teensy @ 1.158.0 (1.58)
- toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
also the resulting code size is much smaller with your environement:
Code:
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:187484, data:34928, headers:9008 free for files:7895044
teensy_size: RAM1: variables:45824, code:184600, padding:12008 free for local variables:281856
teensy_size: RAM2: variables:12384 free for malloc/new:511904
4.18.0:
Code:
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:212520, data:32080, headers:8324 free for files:7873540
teensy_size: RAM1: variables:41856, code:209432, padding:19944 free for local variables:253056
teensy_size: RAM2: variables:12416 free for malloc/new:511872
I will try to move back to your version / platform