Alignment fault

Can you try to debug which line is causing the hardfault?

The Hardfault problem was solved. The NXP driver uses SuspendAllInterrupts and ResumeAllInterrupts to implement protection for critical code execution (similar to vPortEnterCritical and vPortExitCritical in FreeRTOS). However, there are problems with the implementation of SuspendAllInterrupts and ResumeAllInterrupts.
图片

This operation must be performed in Supervisor mode. I corrected it in Application_SVC_Handler according to the writing method of FreeRTOS.

When this problem was solved, it returned to the previous problem. MemFault appeared, and the information reported was the same. :neutral_face:

What is the information reported? Are you able to pin point the faulting instruction?