MQX PCB Corrupt

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

MQX PCB Corrupt

554 Views
jschepler
Contributor III

Hi all,

I am using MQX for KSDK 1.3.0.  I have been using the GNU tools 4.8 2014q3 since the project started.  I decided to update the tools to the latest version which is included in MCUXpress0 10.2.0, which is 7 2017q4.  (One of the reasons is because the linker can print a percentage of memory used after the build...)

I re-built all my libraries and my application.  I am now getting an HARDFAULT in the RTCS library, but only when the library has been built using the "size optimization" flag.  All my libraries were previously built with the -Os flag in the previous toolset, so it seems to be related to the new version of the tools.  

I have installed an exception handler to view the register values when the hardfault occurs.  It always happens in the ENET_send() function in the file fsl_enet_rtcs_adapter.c.  When packetPtr is assigned to packet->FRAG[0].FRAGMENT, the address it points to is 0xFFFF_FFF2, which is obviously not valid.

The function call is the following:

TCPIP_task() 

ARP_service()

IPE_send() 

ENET_send()

I am not sure where to go to further debug the issue.  Should I just go back to the 4.8 version of the tools?

Labels (1)
0 Kudos
0 Replies