Skip to content

Commit cb44ca6

Browse files
committed
[ot] scripts/opentitan: fix store address when second bank is selected
Signed-off-by: Emmanuel Blot <[email protected]>
1 parent 29320b9 commit cb44ca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/opentitan/flashgen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ def store_ot_files(self, otdescs: List[str]) -> None:
570570
except ValueError as exc:
571571
raise ValueError('Invalid address in OT descriptor') from exc
572572
bank = address // self.BYTES_PER_BANK
573+
address %= self.BYTES_PER_BANK
573574
kind = 'rom_ext' if address < self.CHIP_ROM_EXT_SIZE_MAX else \
574575
'bootloader'
575576
self._log.info(

0 commit comments

Comments
 (0)