Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ESP32: add targets to measure static memory sizes #28842

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

srmainwaring
Copy link
Contributor

Add targets from ${IDF_PATH}/tools/cmake/project.cmake to measure the allocation of static memory.

These targets: size, size-components, size-files, may be used in the board build directory. For example if board=esp32s3empty:

$ cd ./build/esp32s3empty/esp-idf_build
$ ninja -v -v size

Total sizes:
Used stat D/IRAM:  243738 bytes (  98022 remain, 71.3% used)
      .data size:   14796 bytes
      .bss  size:  130256 bytes
      .text size:   97659 bytes
   .vectors size:    1027 bytes
Used Flash size : 1122994 bytes
           .text:  925938 bytes
         .rodata:  196800 bytes
Total image size: 1236476 bytes (.bin may be padded larger)

Copy link
Contributor

@tpwrules tpwrules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what it says on the tin. Uploading still works.

@tpwrules tpwrules merged commit d1cbf30 into ArduPilot:master Dec 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants