HardFault exception on cortex M7 for iMXRT1170

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HardFault exception on cortex M7 for iMXRT1170

845 次查看
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 项奖励
回复
1 回复

821 次查看
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 项奖励
回复