mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 03:36:38 +00:00
Add analyze_elf.py
This commit is contained in:
parent
2305212351
commit
3d81331143
@ -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;
|
||||
|
@ -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
25
tools/analyze_elf.py
Normal 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
1077
tools/elf-size-analyze.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user