-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e02bfc1
commit efa3e8e
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Embassy Slint stm32u5g9j-dk2 Demo | ||
|
||
An embedded async Slint GUI demo using Embassy and an stm32u5g9j-dk2 development kit. This demo was written to run on a resource constrained device, not a PC or laptop. | ||
An embedded async Slint GUI demo using Embassy and an stm32u5g9j-dk2 development kit. This demo was written to run on a resource constrained device, not a PC or laptop. | ||
The simulator can run on a PC if you do not have the dev kit on hand but it is not meant to be a reference design for an async GUI implementation on a PC. | ||
|
||
The stm32u5g9j-dk2 was chosen because of its availability and price point and has enough onboard ram (3MB) and flash (4MB) to run Slint without external psram and flash, reducing setup complexity. | ||
|
@@ -22,7 +24,7 @@ Install the cross compilation target for the mcu: | |
rustup target add thumbv8m.main-none-eabihf | ||
``` | ||
|
||
You need software to be able to flash the firmware to the dev kit. | ||
You need software to be able to flash the firmware to the dev kit. | ||
|
||
```bash | ||
cargo install --force --locked probe-rs-tools | ||
|
@@ -51,7 +53,7 @@ target = "thumbv8m.main-none-eabihf" | |
If using vscode then make sure `rust-analyzer.cargo.features` is set to `mcu` in `.vscode/settings.json` | ||
|
||
You may be wondering why you get the following message in the logs: `invalid location: defmt frame-index` | ||
In the Slint workspace `Cargo.toml` file overrides the `Cargo.toml` file in this crate so make sure the release profile is as follows in that workspace file: | ||
In the Slint workspace `Cargo.toml` file overrides the `Cargo.toml` file in this crate so make sure the release profile is as follows in that workspace file: | ||
```toml | ||
[profile.release] | ||
debug = true # required for decent panic messages and log line locations | ||
|
@@ -73,7 +75,7 @@ To run the simulator on a pc: | |
cargo run --bin ui_simulator --release --no-default-features --features=simulator --target x86_64-unknown-linux-gnu | ||
# for windows | ||
cargo run --bin ui_simulator --release --no-default-features --features=simulator --target x86_64-pc-windows-msvc | ||
# for mac | ||
# for mac | ||
cargo run --bin ui_simulator --release --no-default-features --features=simulator --target x86_64-apple-darwin | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Generated | ||
|
||
This crate is here to separate the `.slint` file compilation from the main application. |