... i'd remove the adding from platform.txt, and do the adds for all models "Teensy 4- like" in the linkerfiles.
Otherwise it will be difficult to get that right for all models.
I.e. for Teensy 4, for flash-size it would just be _flashimagelen (which is "internally" correct, but is not displayed?!?)
Similar for RAM.
Or, best, don't use the size-tool. It is not useful for Teensy 4, anyway.
Edit: For ESP 8266, it looks like this:
Otherwise it will be difficult to get that right for all models.
Code:
recipe.size.pattern="{compiler.path}{build.toolchain}{build.command.size}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=^([COLOR=#ff0000]?:\.text|\.text\.progmem|\.text\.itcm|\.data)[/COLOR]\s+([0-9]+).*
recipe.size.regex.data=^(?:\.usbdescriptortable|\.dmabuffers|\.usbbuffers|\.data|\.bss|\.noinit|\.text\.itcm|\.text\.itcm\.padding)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
Similar for RAM.
Or, best, don't use the size-tool. It is not useful for Teensy 4, anyway.
Edit: For ESP 8266, it looks like this:
Code:
Executable segment sizes:
IROM : 228656 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26756 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1252 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 688 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24880 ) - zeroed variables (global, static) in RAM/HEAP
Last edited: