Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a toy project containing a Bare Metal Rust program that will eventually run on a STM32

Build

$ cargo rustc -Zbuild-std=core --bin main --release
       Fresh core v0.0.0 (/home/cehrig/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
       Fresh rustc-std-workspace-core v1.99.0 (/home/cehrig/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
       Fresh compiler_builtins v0.1.133
       Fresh asm v0.1.0 (/home/cehrig/Development/asm)
    Finished `release` profile [optimized] target(s) in 0.02s

Load

$ aarch64-linux-gnu-objcopy -O binary \
    target/thumbv7em-none-eabihf/release/main \
    target/thumbv7em-none-eabihf/release/bios
$ openocd -f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg \
    -c "init; reset halt; flash write_image erase target/thumbv7em-none-eabihf/release/bios 0x08000000 bin; reset run; exit"
$ openocd -f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg -c "init; reset halt"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages