#embedded-hal #nxp #arm #cortex-m #ccc

no-std rad1o-l0dable

为CCCamp2015 rad1o徽章构建可加载的应用程序

1个不稳定版本

使用旧的Rust 2015

0.0.0 2018年6月12日

#6 in #ccc

Apache-2.0

15KB
362

CCCamp 2015 rad1o徽章编写可加载的应用程序。

先决条件

文件 .cargo/config

[target.thumbv7em-none-eabihf]
runner = "arm-none-eabi-gdb"
rustflags = [
  "-C", "link-arg=-Tl0dable.x",
  "-C", "linker=lld",
  "-Z", "linker-flavor=ld.lld",
]

[build]
target = "thumbv7em-none-eabihf"

可选,但强烈建议以提高代码大小

[profile.release]
lto = true

构建脚本

cargo build --release
arm-none-eabi-objcopy -O binary --strip-unneeded target/thumbv7m-none-eabi/release/demo demo.c1d

依赖

~11MB
~359K SLoC