From 769335dae3563503d5affa8339b4a42ad5ccea4b Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Tue, 1 Mar 2022 18:49:15 +0100 Subject: [PATCH] Tools/idf_size.py: Support .noinit sections Closes https://github.com/espressif/esp-idf/issues/8428 --- tools/idf_size.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/idf_size.py b/tools/idf_size.py index ed9b5baf0d..e8dfe730f6 100755 --- a/tools/idf_size.py +++ b/tools/idf_size.py @@ -233,11 +233,13 @@ class LinkingSections(object): split_name = section.split('.') if len(split_name) > 1: # If the section has a memory type, update the type and try to display the type properly - assert len(split_name) == 3 and split_name[0] == '', 'Unexpected section name' + assert split_name[0] == '', 'Unexpected section name "{}"'.format(section) memory_name = '.iram' if 'iram' in split_name[1] else\ '.dram' if 'dram' in split_name[1] else\ '.flash' if 'flash' in split_name[1] else\ '.' + split_name[1] + if len(split_name) < 3: + split_name.append('') # in order to avoid failures in the following lines display_name_list[i] = 'DRAM .' + split_name[2] if 'dram' in split_name[1] else\ 'IRAM' + split_name[1].replace('iram', '') + ' .' + split_name[2] if 'iram' in split_name[1] else\ 'Flash .' + split_name[2] if 'flash' in split_name[1] else\