https://github.com/initerworker/blackpill-embassy-cdc-modbus
BlackPill Embassy CDC Modbus: A Rust-based example project utilizing the Embassy framework on the STM32F411CEUx microcontroller. This project sets up a 48 MHz PLL for USB communication and includes a minimal Modbus server for rapid prototyping of CDC applications on the BlackPill board.
https://github.com/initerworker/blackpill-embassy-cdc-modbus
Last synced: over 1 year ago
JSON representation
BlackPill Embassy CDC Modbus: A Rust-based example project utilizing the Embassy framework on the STM32F411CEUx microcontroller. This project sets up a 48 MHz PLL for USB communication and includes a minimal Modbus server for rapid prototyping of CDC applications on the BlackPill board.
- Host: GitHub
- URL: https://github.com/initerworker/blackpill-embassy-cdc-modbus
- Owner: IniterWorker
- License: apache-2.0
- Created: 2024-10-13T04:26:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-13T04:27:18.000Z (over 1 year ago)
- Last Synced: 2025-03-16T14:38:51.760Z (over 1 year ago)
- Language: Rust
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# BlackPill Embassy CDC Modbus
This example demonstrates using the `embassy` framework with the STM32F411CEUx microcontroller on the BlackPill board, operating with a 25 MHz HSE (High-Speed External) clock. The project configures the PLL (Phase-Locked Loop) to achieve the 48 MHz frequency required for USB communication and the CDC (Communications Device Class).
Additionally, a minimal Modbus server is implemented to assist users in rapidly prototyping Rust-based STM32 Modbus applications that utilize CDC.
## Getting Started
```
cargo run --bin blackpill-embassy-cdc-modbus --release --target thumbv7em-none-eabihf
```
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.