Add STM32WL55 examples to CI (#361)
* Add STM32WL55 examples to CI and fix warnings
This commit is contained in:
parent
5c5cb1a8ce
commit
919cdfe8c4
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -88,6 +88,8 @@ jobs:
|
|||||||
target: thumbv6m-none-eabi
|
target: thumbv6m-none-eabi
|
||||||
- package: examples/stm32wb55
|
- package: examples/stm32wb55
|
||||||
target: thumbv7em-none-eabihf
|
target: thumbv7em-none-eabihf
|
||||||
|
- package: examples/stm32wl55
|
||||||
|
target: thumbv7em-none-eabihf
|
||||||
- package: examples/stm32f0
|
- package: examples/stm32f0
|
||||||
target: thumbv6m-none-eabi
|
target: thumbv6m-none-eabi
|
||||||
|
|
||||||
|
21
examples/stm32wl55/.cargo/config.toml
Normal file
21
examples/stm32wl55/.cargo/config.toml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[unstable]
|
||||||
|
build-std = ["core"]
|
||||||
|
|
||||||
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
||||||
|
# replace your chip as listed in `probe-run --list-chips`
|
||||||
|
runner = "probe-run --chip STM32WLE5JCIx"
|
||||||
|
|
||||||
|
rustflags = [
|
||||||
|
# LLD (shipped with the Rust toolchain) is used as the default linker
|
||||||
|
"-C", "link-arg=--nmagic",
|
||||||
|
"-C", "link-arg=-Tlink.x",
|
||||||
|
"-C", "link-arg=-Tdefmt.x",
|
||||||
|
|
||||||
|
# Code-size optimizations.
|
||||||
|
"-Z", "trap-unreachable=no",
|
||||||
|
"-C", "inline-threshold=5",
|
||||||
|
"-C", "no-vectorize-loops",
|
||||||
|
]
|
||||||
|
|
||||||
|
[build]
|
||||||
|
target = "thumbv7em-none-eabihf"
|
@ -9,7 +9,6 @@ mod example_common;
|
|||||||
use embassy_stm32::{
|
use embassy_stm32::{
|
||||||
dbgmcu::Dbgmcu,
|
dbgmcu::Dbgmcu,
|
||||||
gpio::{Input, Level, Output, Pull, Speed},
|
gpio::{Input, Level, Output, Pull, Speed},
|
||||||
rcc::*,
|
|
||||||
};
|
};
|
||||||
use embedded_hal::digital::v2::{InputPin, OutputPin};
|
use embedded_hal::digital::v2::{InputPin, OutputPin};
|
||||||
use example_common::*;
|
use example_common::*;
|
||||||
@ -20,7 +19,7 @@ use cortex_m_rt::entry;
|
|||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
|
||||||
let mut p = embassy_stm32::init(Default::default());
|
let p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
unsafe { Dbgmcu::enable_all() };
|
unsafe { Dbgmcu::enable_all() };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user