Hi,
I want to get the tick count of the system with sys_clock_tick_get(). I am using a library for NFC reader chip ST25R3916B and provided library from STM requires a platform-dependent tick function to get the number of ticks each ms. I found sys_clock_tick_get function in nRF Connect SDK and together with k_ticks_to_ms_ceil64, I can convert it to number of ticks.
In main function, I can call it and print the result of sys_clock_tick_get in the console. But when this function gets called from a GPIO ISR, then I receive following error:
ASSERTION FAIL @ WEST_TOPDIR/zephyr/kernel/sem.c:136 E: r0/a1: 0x00000004 r1/a2: 0x00000088 r2/a3: 0x00000000 E: r3/a4: 0x0000b185 r12/ip: 0x80000000 r14/lr: 0x00010e77 E: xpsr: 0x6900001d E: Faulting instruction address (r15/pc): 0x00014710 E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0 E: Fault during interrupt handling
What causes this problem?
Thanks.