I'm using the example code provided here (https://github.com/espressif/esp-idf/tr ... idf_as_lib) to build my application.
After building I want to run idf.py size , idf.py size-components. Both of them return error.
Code: Select all
udayms@pc:~/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib ((no branch))$ idf.py size-components
Executing action: size-components
Running ninja in directory /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build
Executing "ninja all"...
[1/4] cd /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build/esp-idf/esptool_py && /home/uda...table/partition-table.bin /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build/idf_as_lib.binidf_as_lib.bin binary size 0x22fc0 bytes. Smallest app partition is 0x100000 bytes. 0xdd040 bytes (86%) free.
[1/1] cd /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build/bootloader/esp-idf/esptool_py &...bootloader 0x0 /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build/bootloader/bootloader.binBootloader binary size 0x5040 bytes. 0x2fc0 bytes (37%) free.
Running ninja in directory /home/udayms/esp/esp-idf-v5.1.1/examples/build_system/cmake/idf_as_lib/build
Executing "ninja size-components"...
ninja: error: unknown target 'size-components'
As I'm new to CMake , I couldn't generate the .map file even after spending couple of hours on it.
It would be helpful if someone guide me to generate .map file or provide steps to enable idf.py size-components