rucko24 / EspFlow

Simple UI for esp32+ and esp8266 utilities
Apache License 2.0
4 stars 1 forks source link

parttool.py support Partition Table Editor ? #28

Open rucko24 opened 4 months ago

rucko24 commented 4 months ago

image

rucko24 commented 3 weeks ago

esptool -p COM8 read_flash 0x8000 0xc00 ptable-esp32S3.img

./gen_esp32part.py ptable-esp32S3.img

image


esptool -p COM6 --chip esp8266 image_info ESP8266lolin.bin

image


Fixme

$ ./gen_esp32part.py ptable-esp8266lolin0x8000.img
Traceback (most recent call last):
  File "C:\Users\rucko\esp_gen32part\gen_esp32part.py", line 619, in <module>
    main()
  File "C:\Users\rucko\esp_gen32part\gen_esp32part.py", line 572, in main
    table, input_is_binary = PartitionTable.from_file(args.input)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\rucko\esp_gen32part\gen_esp32part.py", line 163, in from_file
    data = data.decode()
           ^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 2: invalid continuation byte

image