mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Report flash memory size used by the sketch
This commit is contained in:
parent
5c362798f9
commit
8b33f3e5b9
@ -3,6 +3,7 @@ esp01.name=Generic ESP8266 board (80MHz)
|
|||||||
|
|
||||||
esp01.upload.tool=esptool
|
esp01.upload.tool=esptool
|
||||||
esp01.upload.speed=115200
|
esp01.upload.speed=115200
|
||||||
|
esp01.upload.maximum_size=524288
|
||||||
esp01.upload.wait_for_upload_port=true
|
esp01.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
esp01.build.mcu=esp8266
|
esp01.build.mcu=esp8266
|
||||||
|
11
platform.txt
11
platform.txt
@ -34,6 +34,8 @@ compiler.elf2hex.cmd=esptool
|
|||||||
|
|
||||||
compiler.elf2hex.flags=
|
compiler.elf2hex.flags=
|
||||||
|
|
||||||
|
compiler.size.cmd=xtensa-lx106-elf-size
|
||||||
|
|
||||||
compiler.esptool.cmd=esptool
|
compiler.esptool.cmd=esptool
|
||||||
|
|
||||||
# This can be overriden in boards.txt
|
# This can be overriden in boards.txt
|
||||||
@ -72,11 +74,10 @@ recipe.objcopy.eep.pattern=
|
|||||||
recipe.objcopy.hex.pattern="{compiler.tools.path}{compiler.esptool.cmd}" -eo "{build.path}/{build.project_name}.elf" -bo "{build.path}/{build.project_name}_00000.bin" -bs .text -bs .data -bs .rodata -bc -ec -eo "{build.path}/{build.project_name}.elf" -es .irom0.text "{build.path}/{build.project_name}_40000.bin" -ec
|
recipe.objcopy.hex.pattern="{compiler.tools.path}{compiler.esptool.cmd}" -eo "{build.path}/{build.project_name}.elf" -bo "{build.path}/{build.project_name}_00000.bin" -bs .text -bs .data -bs .rodata -bc -ec -eo "{build.path}/{build.project_name}.elf" -es .irom0.text "{build.path}/{build.project_name}_40000.bin" -ec
|
||||||
|
|
||||||
## Compute size
|
## Compute size
|
||||||
#recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
|
||||||
recipe.size.pattern=
|
recipe.size.regex=^(?:\.text|\.data|\.bss|\.rodata|\.irom0\.text|)\s+([0-9]+).*
|
||||||
recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*
|
#recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
|
||||||
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
|
#recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
|
||||||
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user