2023-08-03 06:23 PM
Hi,
https://github.com/aholzbaur/rust-stm32f4-disco-blinky
I'm trying adapt code in link above to the code in the link below to make a simple blink led(In the case of the link below, the project adds a button). I'm getting the issues below. Any help from you is welcome:
Compiling stm32f4xx-hal v0.11.1 error[E0432]: unresolved import `fugit` --> src/main.rs:6:5 | 6 | use fugit::{Duration, ExtU32}; | ^^^^^ use of undeclared crate or module `fugit` error[E0689]: can't call method `MHz` on ambiguous numeric type `{integer}` --> src/main.rs:20:37 | 20 | let clocks = rcc.cfgr.use_hse(8.MHz()).freeze(); | ^^^ | help: you must specify a concrete type for this numeric value, like `i32` | 20 | let clocks = rcc.cfgr.use_hse(8_i32.MHz()).freeze(); | ~~~~~ error[E0599]: no method named `counter_ms` found for struct `TIM1` in the current scope --> src/main.rs:40:31 | 40 | let mut counter = dp.TIM1.counter_ms(&clocks); | ^^^^^^^^^^ method not found in `TIM1` Some errors have detailed explanations: E0432, E0599, E0689. For more information about an error, try `rustc --explain E0432`. error: could not compile `rust-stm32f4-disco-blinky` due to 3 previous errors
Solved! Go to Solution.
2023-08-12 12:43 PM
2023-08-05 11:24 AM
Solved 10 percent of this issue with cargo add fugit command
2023-08-05 11:37 AM
> Any help from you is welcome
Why from us, not from the author of github project?
2023-08-06 09:19 AM
I already tried contacting him (via x-twitter) with no response. Maybe I should try another way
2023-08-06 06:27 PM
Things get a bit rusty there? Consider applying a drop of oil ))
2023-08-07 10:10 AM - edited 2023-08-07 06:05 PM
I ....
2023-08-12 12:43 PM