Hi L w:
Several reasons may lead to a hard fault, for example, calling a function pointer with an invalid address, stack overflow, trying to read or write to an on-chip peripheral that is powered down or not being clocked, accessing non-mapped memory etc.
I would suggest you debug this issue with MQX task aware debugging.
- Review key TAD windows:
- Task Summary Window
- Stack Usage Window
- MQX Errors Window
- Audit various system parameters:
- Which tasks are running.
- Task states
- Check for identified errors
- Look for stack overflows
Task Aware Debugging
Regards
Daniel