Skip to content

Commit

Permalink
Change flash offset wraparound bypass method
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Mar 30, 2024
1 parent af871a1 commit 712693d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bk7231tools/serial/cmd_ll_chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class BK7231SerialCmdLLChip(BK7231SerialInterface):
def fix_addr(self, addr: int) -> int:
if self.flash_size == 0 or not self.boot_protection_bypass:
return addr
addr &= self.flash_size - 1
addr |= self.flash_size
return addr
return addr + self.flash_size

def reboot_chip(self) -> None:
command = BkRebootCmnd(0xA5)
Expand Down

0 comments on commit 712693d

Please sign in to comment.