Large latency 'k_usleep() /
k_wakeup()`
#68856
-
I try to have a LED blinking while doing some asynchronous background peripheral interactions. This runs on a nrf53 eval board. In the main() thread, I create the necessary timing, using
This works quite good and the LED is blinking with the desired frequency. I have in parallel a state machine, that prepaires and starts SPI transactions. An Interrupt service routine is installed at the end of the SPI transaction, that simply calls I've toggle a debug pin right after the call to I can not find anything in the documentation of Is this intended behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My mistake was, to use |
Beta Was this translation helpful? Give feedback.
My mistake was, to use
IRQ_DIRECT_CONNECT
to register the IRQs (and notIRQ_CONNECT
). After changing this and using a semaphore to wake the main thread, I measure a context switch time of ~2µs.