# Lsm6dsox interrupt task

**URL:** <https://forums.freertos.org/t/lsm6dsox-interrupt-task/16083>\
**Category:** ST\
**Created:** [October 30, 2022, 11:36am UTC](https://forums.freertos.org/t/lsm6dsox-interrupt-task/16083 "2022-10-30T11:36:15Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [October 31, 2022, 4:09pm UTC](https://forums.freertos.org/t/lsm6dsox-interrupt-task/16083/18 "2022-10-31T16:09:50Z")

</div>

What’s the callstack / backtrace ? Find out which call of your code finally caused the assertion to maybe get an idea what’s wrong.  
However, I guess you didn’t setup the NVIC interrupt priority correctly as I already mentioned. Did you verify your chosen priority ?  
When in doubt, have a look at this related documentation:

> **[RTOS for ARM Cortex-M](https://www.freertos.org/RTOS-Cortex-M3-M4.html)**
>
> Setting RTOS interrupt priorities on a ARM Cortex-M microcontroller

and this very good forum posts:

> [@What is config KERNEL INTERRUPT PRIORITY?](https://forums.freertos.org/t/what-is-config-kernel-interrupt-priority/11501/8):
>
> Why is it that “Interrupts that call API functions must also execute at this priority”? Is there an example? What is the treatment different between interrupts which call, and don’t call, API functions? For the discussion below, lets make the following assumptions: Numerically higher priority interrupts have logically higher priority (i.e. priority 2 interrupt can preempt priority 1 interrupt handler). The port implements configKERNEL\_INTERRUPT\_PRIORITY and configMAX\_SYSCALL\_INTERRUPT\_PRIO…

> [@Understanding priority levels of ISR and FreeRTOS APIs](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453/16):
>
> A pictorial representation, if that helps: Logical Numerical Priorities Priorities +--------+ +-------+ ^ | | | | | | | | | | | | | | | Not masked by FreeRTOS kernel | Higher | | Lower | | ( FreeRTOS APIs can not be | | | | | called from these ISRs. ) …

---

_[View the full topic](https://forums.freertos.org/t/lsm6dsox-interrupt-task/16083)._
