File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -667,7 +667,9 @@ def write_flash(
667
667
)
668
668
669
669
# Verify file sizes fit in the set flash_size, or real flash size if smaller
670
- flash_end = min (set_flash_size , flash_end ) if set_flash_size else flash_end
670
+ flash_end = (
671
+ min (set_flash_size , flash_end ) if set_flash_size and flash_end else flash_end
672
+ )
671
673
if flash_end is not None :
672
674
for address , (data , name ) in norm_addr_data :
673
675
if address + len (data ) > flash_end :
@@ -1079,7 +1081,7 @@ def flash_xmc_startup():
1079
1081
if not esp .secure_download_mode :
1080
1082
try :
1081
1083
flash_id = esp .flash_id ()
1082
- if flash_id in (0xFFFFFF , 0x000000 ):
1084
+ if flash_id in (0xFFFFFF , 0x000000 , 0xFFFF3F ):
1083
1085
log .warning (
1084
1086
"Failed to communicate with the flash chip, "
1085
1087
"read/write operations will fail. "
You can’t perform that action at this time.
0 commit comments