Watchdog Triggered during vTaskDelay

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchdog Triggered during vTaskDelay

Jump to solution
1,285 Views
pavankishore1
Contributor II

Hi Team,

On s32k144 with FreeRTOS, we are doing a non-blocking i2c read which is having a delay of 1ms via OSIF_TimeDelay(1). During which we notice a WDOG being triggered.

pavankishore1_0-1608033952558.png

I doubt if this is an actual watchdog; The CFSR register contents are follows:

pavankishore1_1-1608034047781.png

if the register addresses are correct, then I believe the IMPRECISERR and FORCED bit are set which means there is a hard fault.

The stack usage is within the limit. 

Wondering why would a vTaskDelay() cause a fault? Can somebody please shed some light or direct to the right forum for attention?

Thanks.

Tags (1)
0 Kudos
1 Solution
1,274 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, this is not WDOG but a bus fault exception.

It looks like the issue discussed here:

https://community.nxp.com/t5/S32K/S32K142-lpi2c-is-not-working-with-freeRTOS-integration/m-p/875028

"As the driver uses FreeRTOS API, the driver must be initialized and used inside a FreeRTOS task after the scheduler is started."

 

Regards,

Daniel

View solution in original post

0 Kudos
2 Replies
1,275 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Yes, this is not WDOG but a bus fault exception.

It looks like the issue discussed here:

https://community.nxp.com/t5/S32K/S32K142-lpi2c-is-not-working-with-freeRTOS-integration/m-p/875028

"As the driver uses FreeRTOS API, the driver must be initialized and used inside a FreeRTOS task after the scheduler is started."

 

Regards,

Daniel

0 Kudos
1,256 Views
pavankishore1
Contributor II

Hi @danielmartynek,

Thanks for the prompt response. I was performing the driver init outside the task context, and with this change it works fine.

We have similar usage in other projects and we don't see this failure. Can we get more information on the root cause for this error so it helps me to re-structure them based on the failure scenario?

Regards,

Pavan 

0 Kudos