Add analyze_elf.py

This commit is contained in:
fvanroie 2021-02-12 03:03:54 +01:00
parent 2305212351
commit 3d81331143
4 changed files with 1107 additions and 2 deletions

View File

@ -33,7 +33,7 @@
* STATIC PROTOTYPES
**********************/
static void tftShowConfig(TFT_eSPI & tft);
static void tftShowLogo(TFT_eSPI & tft);
static inline void tftShowLogo(TFT_eSPI & tft);
/**********************
* STATIC VARIABLES
@ -242,7 +242,7 @@ static void tftShowConfig(TFT_eSPI & tft)
}
}
static void tftShowLogo(TFT_eSPI & tft)
static inline void tftShowLogo(TFT_eSPI & tft)
{
tft.fillScreen(TFT_DARKCYAN);
int x = (tft.width() - logoWidth) / 2;

View File

@ -130,7 +130,10 @@ ps_ram =
-mfix-esp32-psram-cache-issue
extra_scripts =
${env.extra_scripts}
tools/copy_partitions.py
tools/analyze_elf.py
; -- The ESP32 has 2 SPI Hardware Busses available to use:
vspi =

25
tools/analyze_elf.py Normal file
View File

@ -0,0 +1,25 @@
Import("env")
#env.AddCustomTarget("my_test", None, 'python C:\Users\fvanroie\.platformio\packages\toolchain-xtensa32\bin\elf-size-analyze.py -a -H -w 120 $BUILD_DIR\${PROGNAME} -F -m 250')
# Add custom target to explorer
env.AddTarget(
name = "analyze_ram",
dependencies = "$BUILD_DIR\${PROGNAME}${PROGSUFFIX}",
actions = 'python $PROJECT_DIR/tools/elf-size-analyze.py $BUILD_DIR\${PROGNAME}${PROGSUFFIX} -t $PROJECT_PACKAGES_DIR\\toolchain-xtensa32\\bin\\xtensa-esp32-elf- -a -H -w 120 -R -m 512',
title = "Analyze RAM",
description = "Build and analyze",
group="Analyze"
)
env.AddTarget(
name = "analyze_flash",
dependencies = "$BUILD_DIR\${PROGNAME}${PROGSUFFIX}",
actions = 'python $PROJECT_DIR/tools/elf-size-analyze.py $BUILD_DIR\${PROGNAME}${PROGSUFFIX} -t $PROJECT_PACKAGES_DIR\\toolchain-xtensa32\\bin\\xtensa-esp32-elf- -a -H -w 120 -F -m 512',
title = "Analyze Flash",
description = "Build and analyze",
group="Analyze"
)
print('=====================================')

1077
tools/elf-size-analyze.py Normal file

File diff suppressed because it is too large Load Diff