This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What could explain a HardFault when entering in critical region?

Hello,

We are developing an application which is using the app_scheduler (especially to put events etc.)

It seems that sometimes (very rarely) we detected a Hard Fault when the app_scheduler is calling the CRITICAL_REGION_ENTER() macro (into the app_scheduler.c). We have retrieved core registers when the panic appears:

  • The program counter pointed to "sd_nvic_critical_region_enter" from sdk/import/s110_nrf51822/include/nrf_soc.h line 474 where we can find the supervisor call in order to disable irq.
  • IPSR = 0x3 --> HardFault

Any ideas about what could induce this hard fault?

Thx!

Parents Reply Children
No Data
Related