HardFault exception on cortex M7 for iMXRT1170

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HardFault exception on cortex M7 for iMXRT1170

842件の閲覧回数
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 返信

818件の閲覧回数
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 件の賞賛
返信