re-introduce PDDB structure nuking on SoC reset

This commit is contained in:
bunnie 2022-03-20 15:25:14 +08:00
parent b52b73ddfa
commit 526a7374b0

View file

@ -572,6 +572,10 @@ def main():
with open(args.soc, "rb") as f:
image = f.read()
pc_usb.flash_program(locs['LOC_SOC'][0], image, verify=verify)
print("Erasing PDDB root structures")
pc_usb.erase_region(locs['LOC_PDDB'][0], 1024 * 1024)
print("Resuming CPU.")
pc_usb.poke(vexdbg_addr, 0x02000000)