From 526a7374b011edc03dd0e487c3a9e1b8af1f90c2 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 20 Mar 2022 15:25:14 +0800 Subject: [PATCH] re-introduce PDDB structure nuking on SoC reset --- tools/usb_update.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/usb_update.py b/tools/usb_update.py index d3af734c7..0bcf8490c 100755 --- a/tools/usb_update.py +++ b/tools/usb_update.py @@ -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)