Skip to content

Controller Area Network (CAN bus) #170

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

Closed
reneherrero opened this issue Oct 5, 2019 · 2 comments
Closed

Controller Area Network (CAN bus) #170

reneherrero opened this issue Oct 5, 2019 · 2 comments

Comments

@reneherrero
Copy link

Is CAN bus communications something that is supported in rust on Cortex M? Any getting started tips/links?

All I'm finding in Google is based on Linux/SocketCAN. I can't imagine I'm the first to have this need?

Apologies if this is not the appropriate channel, I've recently fallen in love with Rust and am venturing into new territories... C is a dinosaur that needs to be turned into oil :)

@hannobraun
Copy link
Member

The cortex-m crate only covers the Cortex-M core peripherals, while CAN peripherals would be vendor-specific. So you're asking in the wrong project :-)

embedded-hal provides an abstraction layer for vendor-specific peripherals. It doesn't support CAN as of yet, but there's been discussion and some stalled work: rust-embedded/embedded-hal#21, rust-embedded/embedded-hal#53, rust-embedded/embedded-hal#77

In addition, there might already be HAL APIs that support CAN for a specific chip. I can't think of any off the top of my head though, but maybe you can find something in the stm32-rs organization.

@reneherrero
Copy link
Author

Thanks for the info @hannobraun, and apologies for the noise. Closing the issue.

adamgreig pushed a commit that referenced this issue Jan 12, 2022
170: Discard .ARM.extab.* r=japaric a=phil-opp

Fixes #157 

Co-authored-by: Philipp Oppermann <dev@phil-opp.com>
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