esp32_image_parser icon indicating copy to clipboard operation
esp32_image_parser copied to clipboard

[create_elf] KeyError: '.iram0.text'

Open josesa opened this issue 1 year ago • 3 comments

Getting the following errors on a binary

Dumping partition 'ota_0' to ota_0_out.bin
Unsure what to do with segment: PADDING
Unsure what to do with segment: RTC_DATA
Traceback (most recent call last):
  File "esp32_image_parser.py", line 283, in <module>
    main()
  File "esp32_image_parser.py", line 266, in main
    image2elf(dump_file, output_file, verbose)
  File "esp32_image_parser.py", line 159, in image2elf
    size = len(section_data['.iram0.vectors']['data']) + len(section_data['.iram0.text']['data'])
                                                             ~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: '.iram0.text'

josesa avatar Mar 18 '24 17:03 josesa

Might get fixed by #15

niftic avatar Apr 03 '24 18:04 niftic

It does fix the issue, thank you!

helgek avatar Apr 07 '24 00:04 helgek

All the three fixes I needed to eventually create the .elf file are included in this version:

esp32_image_parser.zip

helgek avatar Apr 07 '24 00:04 helgek