Skip to content

KeyError: '.flash.rodata' #21

@danyhm

Description

@danyhm

Similar to #8 I get this error

C:\Desktop\badge\esp\esp32_image_parser>python esp32_image_parser.py create_elf new.bin -partition app0 -output app0.elf
Dumping partition 'app0' to app0_out.bin
Warning: Unexpected chip ID in image. Expected 0 but value was 9. Is this image for a different chip model?
Traceback (most recent call last):
  File "C:\Desktop\badge\esp\esp32_image_parser\esp32_image_parser.py", line 283, in <module>
    main()
  File "C:\Desktop\badge\esp\esp32_image_parser\esp32_image_parser.py", line 266, in main
    image2elf(dump_file, output_file, verbose)
  File "C:\Desktop\badge\esp\esp32_image_parser\esp32_image_parser.py", line 161, in image2elf
    size = len(section_data[name]['data'])
               ~~~~~~~~~~~~^^^^^^
KeyError: '.flash.rodata'

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions