Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ierturk/rust-on-stm32
Works on STM32F4 with Rust on the STM32F429-Discovery board with probe-rs on VSCode and WSL
https://github.com/ierturk/rust-on-stm32
embedded embedded-graphics lcd-display lilos made-with-slint probe-rs rtos rust-lang slint-ui stm32f4 vscode wsl
Last synced: about 2 months ago
JSON representation
Works on STM32F4 with Rust on the STM32F429-Discovery board with probe-rs on VSCode and WSL
- Host: GitHub
- URL: https://github.com/ierturk/rust-on-stm32
- Owner: ierturk
- License: mpl-2.0
- Created: 2023-11-17T14:47:51.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-09T16:18:51.000Z (7 months ago)
- Last Synced: 2024-06-09T17:52:52.617Z (7 months ago)
- Topics: embedded, embedded-graphics, lcd-display, lilos, made-with-slint, probe-rs, rtos, rust-lang, slint-ui, stm32f4, vscode, wsl
- Language: Rust
- Homepage: https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/
- Size: 6.09 MB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A Rust Board Support Package (BSP) and Example Slint Application for STM32F429-Discovery Kit
[Associated post](https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/)![Made with Slint](docs/images/made-with-slint.png)
#made-with-slint
___
### The Tools that Used within this Post
- [Rust Toolchain](https://www.rust-lang.org/learn/get-started)
- [usbpid-win](https://github.com/dorssel/usbipd-win)
- [probe-rs](https://probe.rs/docs/getting-started/installation/)
- [VSCode](https://code.visualstudio.com/)
- [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)
- [rust-analyzer plugin for VSCode](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
- [probe-rs plugin for VSCode](https://marketplace.visualstudio.com/items?itemName=probe-rs.probe-rs-debugger)
- [WSL plugin for VSCode](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)
- [GitHUB repository](https://github.com/ierturk/rust-on-stm32)
- [STM32F429ZI Discovery Board](https://www.st.com/en/evaluation-tools/32f429idiscovery.html)
- [WSL - Windows Subsystem for Linux](https://apps.microsoft.com/detail/windows-subsystem-for-linux/9P9TQF7MRM4R?hl=en-gb&gl=US)
[Ubuntu 22.04.2 LTS](https://apps.microsoft.com/detail/9PN20MSR04DW?hl=en-gb&gl=US)
- [Slint](https://slint.dev/)
- [Slint Plugin for VSCode](https://marketplace.visualstudio.com/items?itemName=Slint.slint)
- [lilos Async RTOS](https://github.com/cbiffle/lilos)
___
### Setup
For setup the whole development system on WSL and VSCode please refer to [this post](https://erturk.me/projects/working-with-rust-embedded-on-wsl/)
___
### Running and Debugging
- Clone [the repository](https://github.com/ierturk/rust-on-stm32)
- Open the folder in VSCode
- In terminal
```
ierturk@DESKTOP-JC8L4M1:~$ cargo run -release
```
Or
- It can be run through VSCode menus
___
### Added Nix Flakes and DirEnv Support
Everything will be set by just typing following command
```
me@localhost:~$ nix develop
```
It needs to be installed `nix` package manager with enabled `nix-command` and `flake` support.
___
### Conclusion
This is the Slint Carousel Demo running on the F4 MCU![Slint UI Carousel Demo](docs/images/rust-slint-ui-carousel-demo.jpeg)
Happy reading and coding!