You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Unexpected chip id in image. Expected %d but value was %d. Is this image for a different chip model?"% (self.ROM_LOADER.IMAGE_CHIP_ID, chip_id))
1908
-
1909
-
# reserved fields in the middle should all be zero
1910
-
ifany(fforfinfields[6:-1] iff!=0):
1911
-
print("Warning: some reserved header fields have non-zero values. This image may be from a newer esptool.py?")
1912
-
1913
-
append_digest=fields[-1] # last byte is append_digest
1914
-
ifappend_digestin [0, 1]:
1915
-
self.append_digest= (append_digest==1)
1882
+
iffields[15] in [0, 1]:
1883
+
self.append_digest= (fields[15] ==1)
1916
1884
else:
1917
-
raiseRuntimeError("Invalid value for append_digest field (0x%02x). Should be 0 or 1.", append_digest)
1885
+
raiseRuntimeError("Invalid value for append_digest field (0x%02x). Should be 0 or 1.", fields[15])
1918
1886
1887
+
# remaining fields in the middle should all be zero
1888
+
ifany(fforfinfields[4:15] iff!=0):
1889
+
print("Warning: some reserved header fields have non-zero values. This image may be from a newer esptool.py?")
parser_elf2image.add_argument('--output', '-o', help='Output filename prefix (for version 1 image), or filename (for version 2 single image)', type=str)
parser_elf2image.add_argument('--secure-pad', action='store_true', help='Pad image so once signed it will end on a 64KB boundary. For ESP32 images only.')
2775
2741
parser_elf2image.add_argument('--elf-sha256-offset', help='If set, insert SHA256 hash (32 bytes) of the input ELF file at specified offset in the binary.',
0 commit comments