Skip to content

name 'LoadFirmwareImage' is not defined #4

@cryptax

Description

@cryptax

I get this error when I try to dump a partition:

./esp32_image_parser.py create_elf flash.bin -partition app0 -output app0.elf
Dumping partition 'app0' to app0_out.bin
Traceback (most recent call last):
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 281, in <module>
    main()
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 264, in main
    image2elf(dump_file, output_file, verbose)
  File "softs/esp32_image_parser/./esp32_image_parser.py", line 41, in image2elf
    image = LoadFirmwareImage('esp32', filename)
NameError: name 'LoadFirmwareImage' is not defined

This can be fixed in esp32_image_parser.py if you add from esptool.bin_image import *:

import sys
import json
import os, argparse
from makeelf.elf import *
from esptool import *
from esptool.bin_image import *
from esp32_firmware_reader import *
from read_nvs import *
...

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