HardFault exception on cortex M7 for iMXRT1170
03-15-2023
07:06 AM
879 次查看
pratiknaphade2
Contributor II
Hi,
Thanks in advance.
We are using FreeRTOS and LwIP network stack, for initial testing we build and run the code in MCUXpresso IDE (from NXP), it is working fine with IP allocation and tcp server-client communication.
Now we have ported our project into IAR EW, but when we run the code, it hangs into the HardFault exception. We debugged into the code for LwIP functionality, and we got one code line where it gets stucks (from where it goes to HardFault exception). Below is the image from IAR EW for the error.
The code line is performing only the assignment operation from one struct to another struct variable.
Can anyone tell us why it is causing the exception? Is it because of memory alignment or structure packing or anything which is compiler or RTOS specific?
1 回复
03-16-2023
03:40 PM
855 次查看

NXP TechSupport
I am following your questions over this thread , which I understand is about the same issue.
Could you help me to take a look?
Thanks
Diego
