Got Nuvoton M487 working with the NUC505 driver with minimum modification #3440
ImproperCatGirl
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
yeah, we should refactor to merge nuvoton usbip to same driver and handle the register by either compiler macro or even define our own register struct like dwc2, you can follow that structure. I just don't have enough time to make the PR. I am wiling to help if you could make an PR. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been working on a port for the Nuvoton M487 and noticed that it uses an almost identical USB IP core to the existing NUC505 driver. I also found that other chips in the NuMicro family (like the M463) appear to reuse this same IP.
I currently have a working "dirty" patch where I took dcd_nuc505.c, but it required several mechanical changes due to minor naming discrepancies in the Nuvoton header files (e.g., USBD become HSUSBD (since the M487 have a separate FS USB port) CEPBUFSTART vs CEPBUFST) and a few IP-specific logic additions (like endpoint flushing in reset).
The Proposal: Instead of creating a new dcd_m487.c, I would like to refactor dcd_nuc505.c into a unified Nuvoton High-Speed DCD that supports multiple MCUs.
Questions for Maintainers:
I’m happy to submit a PR once I’ve cleaned up the mechanical renames into an abstraction layer.
Beta Was this translation helpful? Give feedback.
All reactions