Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing memory layout in svd #351

Closed
Szpadel opened this issue Apr 20, 2021 · 1 comment
Closed

Missing memory layout in svd #351

Szpadel opened this issue Apr 20, 2021 · 1 comment
Assignees
Milestone

Comments

@Szpadel
Copy link

Szpadel commented Apr 20, 2021

I'm trying to implement USB driver in rust and I cannot find endpoint and buffer controll registers. It looks like there is nothing from base 0x5010000 to 0x5011000.
I confirmed that there should be controller structures in datasheet and are used in c implementation.

Am I missing something or there is some issue with svd?

@lurch
Copy link
Contributor

lurch commented Apr 21, 2021

I just checked, and I guess you're asking about the USBCTRL_DPRAM stuff? https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2040/hardware_regs/include/hardware/regs/addressmap.h#L65

The C SDK comprises some headers that are autogenerated (hardware_regs), and some that are manually-edited (hardware_structs) - the hardware_structs headers generally make use of things defined in the hardware_regs headers. The SVD file is also autogenerated.

The USBCTRL_REGS stuff appears in the autogenerated hardware_regs headers and the SVD file, but the USBCTRL_DPRAM stuff only appears in the hand-edited headers (and therefore not the SVD).

I know nothing about the USB controller in the RP2040, so pinging @liamfraser for advice on what can / should be added to the SVD file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants