Skip to content

Commit

Permalink
Add analyze_elf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Feb 12, 2021
1 parent 2305212 commit 3d81331
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lv_drv_tft_espi/tft_espi_drv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
25 changes: 25 additions & 0 deletions tools/analyze_elf.py
Original file line number Diff line number Diff line change
@@ -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('=====================================')
Loading

0 comments on commit 3d81331

Please sign in to comment.