-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
v5.3 idf.py Size Command "-DOUTPUT_FORMAT" Not Working (IDFGH-13484) #14383
Comments
Hello @bulutbekdemir , maybe $ idf.py size --format csv Where is the |
Hello, the command is documented here: Measuring Static Sizes and I just paste here: Under the Note section
|
Hello @fhrbata, |
I cannot checkout to v5.3.0 (seems it doesn't exist) so I assume you mean v5.3. Running the same command on my machine cmake version 3.26.4
CMake suite maintained and supported by Kitware (kitware.com/cmake). idf version commit e0991facf5ecb362af6aac1fae972139eb38d2e4 (HEAD, tag: v5.3) |
Hello @cristianfunes79
also when I tried to update my cmake version it gives out:
and my idf version is same as you, here the HEAD commit: Do you really tried |
Yep, it is still working for me. May I ask you for more details about what are you building? which project? which target? Did you run all idf installation steps (install, export and so on)? |
I am developing a custom component for a company's project, which needs to remain closed source. The application relies on multiple libraries, and I'm able to view all details related to binary files when I run specific commands without CMake flags and with or without Initially, I installed ESP-IDF version 5.2.2 and then upgraded to version 5.3 using the default installer through the 'Configure ESP-IDF Extension' settings. I also reinstalled all other components without uninstalling version 5.2.2, as I still need this version for compatibility reasons. The project is being built for a custom ESP32-C3 device and ESP32-C3-DevKitM-1 through UART, as well as other devices like the ESP32-C6. Despite the issues with command output, the application builds successfully and runs on the target devices. |
Hello @bulutbekdemir ,
thank you, you are absolutely right. Information about I believe we should simply delete the note that mentions Thank you once more for bringing this to our attention. |
Hello @cristianfunes79 ,
Are you actually seeing the output in CSV format or just the default table? The command works, but it does not display the output in the requested format specified by Thank you |
I can actually see this [0/1] cd /home/ubuntu/esp/esp-idf/examples/cxx/pthread/build && /home/linuxbrew/.linuxbrew/Cellar/cmake/3.26.4/bin/cmake -D "IDF_SIZE_TOOL=/home/ubuntu/.espressif/python_env/idf5.3_py3.11_env/bin/python;-m;esp_idf_size" -D MAP_FILE=/home/ubuntu/esp/esp-idf/examples/cxx/pthread/build/cpp_pthread.map -D OUTPUT_JSON= -P /home/ubuntu/esp/esp-idf/tools/cmake/run_size_tool.cmake
"Memory Type/Section","Used [bytes]","Used [%]","Remain [bytes]","Total [bytes]"
"Flash Code","280646","3.35","8107930","8388576"
".text","280646","3.35","",""
"DRAM","61304","19.08","259992","321296"
".text","47250","14.71","",""
".bss","8480","2.64","",""
".data","5208","1.62","",""
"Flash Data","59048","0.7","8329528","8388576"
".rodata","58792","0.7","",""
".appdesc","256","0.0","",""
"RTC SLOW","536","6.54","7656","8192"
".rtc_reserved","24","0.29",""," |
Hello @cristianfunes79 ,
Thank you. I might be missing something, but I don't understand how using |
Setting OUTPUT_FORMAT through the CMake variable probably never functioned and seems to be a remnant (possibly a typo in the documentation) from the time when the -DOUTPUT_JSON=1 CMake variable was used to specify the JSON output format, prior to the introduction of the --format option. This removes the note regarding the option to choose the output format using -DOUTPUT_FORMAT. Closes #14383 Signed-off-by: Frantisek Hrbata <[email protected]>
Setting OUTPUT_FORMAT through the CMake variable probably never functioned and seems to be a remnant (possibly a typo in the documentation) from the time when the -DOUTPUT_JSON=1 CMake variable was used to specify the JSON output format, prior to the introduction of the --format option. This removes the note regarding the option to choose the output format using -DOUTPUT_FORMAT. Closes #14383 Signed-off-by: Frantisek Hrbata <[email protected]>
Setting OUTPUT_FORMAT through the CMake variable probably never functioned and seems to be a remnant (possibly a typo in the documentation) from the time when the -DOUTPUT_JSON=1 CMake variable was used to specify the JSON output format, prior to the introduction of the --format option. This removes the note regarding the option to choose the output format using -DOUTPUT_FORMAT. Closes #14383 Signed-off-by: Frantisek Hrbata <[email protected]>
Closing for inactivity, If the problem persists feel free to reopen or create a new issue. Cheers! |
Answers checklist.
General issue report
I'm using IDF v5.3.0 release on
Linux <username> 6.5.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
via VS Code extension. When I tried to useidf.py size-files -DOUTPUT_FORMAT=JSON
oridf.py size-files -DOUTPUT_FORMAT=csv
or any other commandssize-components
orsize
with all possible combinations via same ways, I just mentioned here but getting same error, every time. I dropped a sample output here:The text was updated successfully, but these errors were encountered: