Skip to content

Messing around with setting up a STM32F411re board for inverter control starting from @kalkyl's f411-rtic repo

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

TragerJoswig-Jones/f411-rtic

 
 

Repository files navigation

NUCLEO-F411RE playground

probe-run + defmt + flip-link + rtic Rust embedded playground

Dependencies

1. flip-link:

$ cargo install flip-link

2. probe-run:

$ cargo install probe-run

Run!

Start by cargo run-ning src/bin/exti.rs:

$ # `rb` is an alias for `run --bin`
$ cargo rb exti
  Finished dev [optimized + debuginfo] target(s) in 0.3s
  Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabihf/debug/exti`
  (HOST) INFO  flashing program (13.39 KiB)
  (HOST) INFO  success!
────────────────────────────────────────────────────────────────────────────────
0.000000 INFO  Press button!
└─ exti::init @ src/bin/exti.rs:38
(..)

Run hardware tests

Conenct pin PA8 to GND and PB9 to Vdd then run cargo test from inside the testsuite folder

$ cargo test
    Finished test [optimized + debuginfo] target(s) in 0.03s
     Running /GIT/f411-rtic/target/thumbv7em-none-eabihf/debug/deps/gpio-4ace02b17c13e985
  (HOST) INFO  flashing program (11.00 KiB)
  (HOST) INFO  success!
────────────────────────────────────────────────────────────────────────────────
0.000000 INFO  (1/2) running `gnd_is_low`...
└─ gpio::tests::__defmt_test_entry @ tests/gpio.rs:20
0.000001 INFO  (2/2) running `vdd_is_high`...
└─ gpio::tests::__defmt_test_entry @ tests/gpio.rs:20
0.000002 INFO  all tests passed!
(..)

About

Messing around with setting up a STM32F411re board for inverter control starting from @kalkyl's f411-rtic repo

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.0%
  • GDB 1.0%