I've used the example in examples/peripheral/gpiote to count edges of a WATCHDOG pin from a different MCU:
After starting the timer I want to periodically get the current count value with:
But it always gives me a constant value. If I use a gpiote interrupt and increment a counter in the interrupt routine it runs fine which tells me that the pin
is working fine. But somehow the counter or PPI does not work as expected. So how can I make a counter count on a PIN toggle and get and reset the
count from within the main context.
Thanks in advance.
C.W.