Skip to content

01joja/f411-rtic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working examples:

I haven't gotten all the examples to work with "standard rtic" or "modular rtic".

The following works:

  • blink.rs
  • button-bool.rs
  • button-double.rs
  • button-duration.rs
  • button.rs
  • exti.rs

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`
$ DEFMT_LOG=info 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!
(..)

WSL notes:

Process to access USB from WSL:

  • Start Windows powershell as an administrator.
  • Run usbipd wsl list to see all USB-devices that can connect to wsl.
  • Run following usbipd wsl attach --busid <BUSID> but change <BUSID> to corresponding from above command.
  • Verify that the right USB can be accessed in WSL by running usbipd wsl list.

About

Test for my examens work

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%