Skip to content

Commit

Permalink
gateware: bootloader: swapped the polarity of the USB domain reset.
Browse files Browse the repository at this point in the history
Turns out when your hold the USB domain in reset *when* the PLL is locked, you don't actually enumerate :v
  • Loading branch information
lethalbit committed Dec 27, 2024
1 parent 8266b66 commit 9b01b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion squishy/gateware/bootloader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9b01b73

Please sign in to comment.