Open alsoft-alex opened 2 years ago
(not the maintainer) I suspect your problem is that NrfTimerExt
is implemented for a different version of nrf52840_pac::TIMER0
than your application code is using. I solved this by using the unpublished version of rubble, you could also figure out what version of nrf52840-hal
rubble uses and downgrade to that version in your app.
Here's how to use the latest unpublished version
rubble = { git = "https://github.com/jonas-schievink/rubble" }
rubble-nrf5x = { git = "https://github.com/jonas-schievink/rubble", features = [
"52840"
] }
Thanks @danielzfranklin !
Hello,
When compiling my application, I get the following error:
NrfTimerExt
is not implemented fornrf52840_hal::nrf52840_pac::TIMER0
note: required by
BleTimer::<T>::init
--> /Users/xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:38:5 | 38 | pub fn init(mut peripheral: T) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^nrf52840_hal::nrf52840_pac::TIMER0: NrfTimerExt
is not satisfied --> src/main.rs:52:25NrfTimerExt
is not implemented fornrf52840_hal::nrf52840_pac::TIMER0
::: /Users/xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/rubble-nrf5x-0.0.4/src/timer.rs:30:24 | 30 | pub struct BleTimer {
| ----------- required by this bound in
BleTimer
_Here are my dependencies: _[dependencies] rubble = "0.0.4" rubble-nrf5x = "0.0.4" cortex-m = "0.7.3" cortex-m-rt = "0.7.0" cortex-m-rtic = "0.5.9" cortex-m-semihosting = "0.3.7" panic-halt = "0.2.0" rtt-target = { version = "0.3.1", features = ["cortex-m"] } nrf52840-hal = { version = "0.14", features = ["rt"], optional = true }
[features] 52840 = ["rubble-nrf5x/52840", "nrf52840-hal"]_
I compile the app by calling cargo build --features 52840.
Does anybody have any idea what to do?