Skip to content

Commit

Permalink
Tools: handle unsupported ext flashsize
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator authored and tridge committed Sep 1, 2021
1 parent 7cf9db4 commit 2dc51d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tools/scripts/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,11 @@ def identify(self):
self.board_type = self.__getInfo(uploader.INFO_BOARD_ID)
self.board_rev = self.__getInfo(uploader.INFO_BOARD_REV)
self.fw_maxsize = self.__getInfo(uploader.INFO_FLASH_SIZE)
self.extf_maxsize = self.__getInfo(uploader.INFO_EXTF_SIZE)
try:
self.extf_maxsize = self.__getInfo(uploader.INFO_EXTF_SIZE)
except Exception:
print("Could not get external flash size, assuming 0")
self.extf_maxsize = 0

def dump_board_info(self):
# OTP added in v4:
Expand Down

0 comments on commit 2dc51d9

Please sign in to comment.