HardFault exception on cortex M7 for iMXRT1170

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

HardFault exception on cortex M7 for iMXRT1170

819 Views
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.

IAR_CodeLine.png

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?
0 Kudos
Reply
1 Reply

795 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @pratiknaphade2 

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

0 Kudos
Reply