cancel
Showing results for 
Search instead for 
Did you mean: 

SPC58

SPC58NH
Associate II

We are using SPC58NH-disp.
We are developing a software that we want to print the data we receive over CAN-FD to the screen with TCP.
We are using a Simple TCP Echo Server Demo for TCP.
Data flow takes place indefinitely and in indefinite numbers.But suddenly the device is locked.
Either, Can-fd data is transmitted endlessly when the Ethernet socket is not plugged in.
However, when the socket is inserted, the device is locked even if the connection is not established.
Can you help with this crash?

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello,

Did you solve your issue?

i recommend to use a debugger and check PC,R13,R14 with Stack history

                  Best Regards

                                  Erwan

               Best Regards

                               Erwan

View solution in original post

4 REPLIES 4
Erwan YVIN
ST Employee

Hello,

Did you solve your issue?

i recommend to use a debugger and check PC,R13,R14 with Stack history

                  Best Regards

                                  Erwan

               Best Regards

                               Erwan

Hello Erwan,

Thank you for your answer.

According to your answer, when I turned on the device, the device locked at the point in the image.

Can you help me with the solution?

Best Regards

SPC58NH_0-1707725559240.pngSPC58NH_1-1707725570371.png

 

Hello ,

it is a data abort ..check R13, R14 with your debugger 

it will point where the data abort happenned.

            Best Regards

                        Erwan

Hello,
Thank you for your answer
I couldn't find anything about R13 and R14 that you mentioned regarding locking.
When I close all TCP-related parts and remove them from the project, I can observe the data on the screen via USB.
But the "xTaskGetTickCount" function I use to create a timestamp for the data causes a crash.
When I turn off this function in its software and activate the TCP part, it crashes again.

The part where I use the function is listed below.

Best Regards

SPC58NH_0-1707912212395.png

SPC58NH_1-1707912228908.png