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

Is USB device working with Rtic on atsamE54 ? #722

Closed
yann77500 opened this issue Jan 23, 2024 · 2 comments
Closed

Is USB device working with Rtic on atsamE54 ? #722

yann77500 opened this issue Jan 23, 2024 · 2 comments

Comments

@yann77500
Copy link

Hello,
I tried to follow the feather_m0 usb_echo example to build a prog to atsamE54 xpro board.
Unfortunatly cargo build failed with following issue app::usb_device::usb::UsbBus
no implement trait for atsamd_hal::usb::UsbBus

I suppose the issue is due to app made by rtic2

Do you know a solution please?

Thanks by advance

@jbeaurivage
Copy link
Contributor

Hi @yann77500, first of all, you're better off following an example from another board like feather_m4, because its chip (ATSAMD51) more closely resembles yours (ATSAME54), compared to a feather_m0 which uses an ATSAMD21. They are different architectures and therefore some implementations differ. I doubt this has anything to do with the RTIC v2 framework you are using.

Furthermore, consider also joining our matrix chat room where we can help you work out your issue more easily.

@yann77500
Copy link
Author

Hi @jbeaurivage ,
Thanks for your reply.
I finally understand the origin of the issue. I think it was a conflict version between usb crates and atsamd hal.
I tried to build usbd-hid crate v 0.7.0 and atsamd 0.16.0, but only works usbd-hid v0.6.0 with atsad 0.16.0.

Now I can build and run usb hid device with RTIC 2 environnement on ATsamE54 Xplain pro board

Thanks for your help.

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

2 participants