-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
idf.py size-components: Unexpected section name (IDFGH-6801) #8428
Comments
Hi @balix-microej. I'm sorry for the late reply. By any chance, is your project publicly available or could you share at least your MAP file from the build directory? Please be aware that the MAP file could contain sensitive information so don't share it here if it is proprietary. As a possible fix please try to remove line no. 201: assert len(split_name) == 3 and split_name[0] == '', 'Unexpected section name' ... and change line no. 182 from display_name = seg_name + ('' if seg_name != 'IRAM' else split_name[1].replace('iram', '')) + f' .{split_name[2]}' to display_name = seg_name + ('' if seg_name != 'IRAM' else split_name[1].replace('iram', '')) + f' .{split_name[2]}' if len(split_name) >2 else '' Please note that your line numbers could be slightly different. |
Hi @dobairoland. No problem. I did as you advised and it worked. It seems that in fact this is normal in my case. I have a specific library included in my project that have section names that do not match the expected pattern. Thank you for your help! |
Thanks for the feedback. The above fix will be probably included in ESP-IDF soon. |
Environment
Problem Description
Trying to get size info on the firmware produced.
idf.py size
works as expected but notidf.py size-components
.Expected Behavior
Print size info about components in an IDF project.
Actual Behavior
Command failed to run with the following error:
If I print the sections here is what I got:
So I assume that this section
noinit
does not fit the naming scheme to be processed by this script. Is there any way I can work around this?The text was updated successfully, but these errors were encountered: