From 9b01b73b8d911047dbedc164dc2af3f551afb4f4 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 26 Dec 2024 18:43:09 -0800 Subject: [PATCH] gateware: bootloader: swapped the polarity of the USB domain reset. Turns out when your hold the USB domain in reset *when* the PLL is locked, you don't actually enumerate :v --- squishy/gateware/bootloader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squishy/gateware/bootloader/__init__.py b/squishy/gateware/bootloader/__init__.py index 9efa0f9a..e65a2924 100644 --- a/squishy/gateware/bootloader/__init__.py +++ b/squishy/gateware/bootloader/__init__.py @@ -208,7 +208,7 @@ def elaborate(self, platform: SquishyPlatformType | None) -> Module: dev.full_speed_only.eq(0), # TODO(aki): Should this be tied to the PLL lock like we do with 'sync'? # Release the reset on the USB clock domain - ResetSignal('usb').eq(pll.pll_locked), + ResetSignal('usb').eq(~pll.pll_locked), # Hook together the platform interface and the DFU handler # TODO(aki): These really *really* should be pulled into an interface platform_interface.trigger_reboot.eq(dfu_handler.trigger_reboot),