Autodetect flash size (#2615)

This commit is contained in:
Stefan Agner 2021-10-23 13:25:46 +02:00 committed by Jesse Hills
parent 9aaaf4dd4b
commit 2abe09529a
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -226,6 +226,8 @@ def upload_using_esptool(config, port):
mcu, mcu,
"write_flash", "write_flash",
"-z", "-z",
"--flash_size",
"detect",
] ]
for img in flash_images: for img in flash_images:
cmd += [img.offset, img.path] cmd += [img.offset, img.path]