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

xQueueReceive FreeRTOS hardfault NRF52840

Hello,

It is my first time running FreeRTOS on NRF52 and I would really appreciate any help to figure out the root cause for the hard fault. 

I run a  simple FreeRTOS application with 2 tasks. The application receives UART data and loops it back. The system starts fine and runs fine for 1 - 2 mins and then the hard fault happens. In xQueueReceive function. The call stack screen shot is attached:



As the stack shows the hard fault happens in the  DSB instruction inside the  portYIELD()  macro.  I'll appreciate any ideas about the root cause of the issue.

Best Regards,
Anton

Parents Reply Children
No Data
Related