cancel
Showing results for 
Search instead for 
Did you mean: 

SPC58EC freeze after a while sending ethernet messages to linux

AMarc.9
Associate

Hello to all, I'm working on a simple application for exchanging messages via ethernet with a SPC58EC. The application is a clean derivation of the gateway example without the remote which simply has to talk to another linux application.

The application establishes a connection, sends messages for a couple of minutes, then freezes.

If I block the debug I see that the code is in an "unhandled exception 2" line.

I leave you below the most important parts of the code SPC5

Is there anything special I need to pay attention to in the network setup of the SPC5 studio configuration?

Thanks in advance to all for the help

Andrea

5 REPLIES 5
Erwan YVIN
ST Employee

Hello Andréa ,

For this ,

it seems to be a data abort or stack corruption.

the PC (program counter) should be in unhandled exception.

I recommend to check R13 / R14 (e200 registers) with your debugger.

You will find the root cause.

Best Regards

Erwan

AMarc.9
Associate

Hi @Erwan YVIN​ ,

thnaks for your answer.

I've already check the status of the stack with function uxTaskGetStackHighWaterMark() to check the size, and everything is ok.

The R13 register is set with the address 0x00FD64C0, the register R14 is set to 0x00000014.

Have you any ideas with this two values of what could be the cause?

Thanks in advance.

Andrea

Hi @AMarc.9,

I am facing a similar problem, described here:
 https://community.st.com/t5/microcontrollers/spc58xexx-rla-network-ping-test-application-crashes-with/m-p/605616

Did you solve your problem back in the day?

Thanks in advance.

Felix

by typing b.l 0x00FD64C0 with your debugger , it seems to be a function which cause the data abort .; maybe a null pointer or a data corruption

febe2
Associate II

I don’t quite understand… Is this the solution to find out why the application crashes?

Did you manage to find the cause of the crash?