2023-08-04 05:57 AM
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?
Solved! Go to Solution.
2023-08-23 02:50 AM - edited 2023-08-23 03:30 AM
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
2023-08-23 02:50 AM - edited 2023-08-23 03:30 AM
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
2024-02-12 12:13 AM
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
2024-02-12 05:22 AM
Hello ,
it is a data abort ..check R13, R14 with your debugger
it will point where the data abort happenned.
Best Regards
Erwan
2024-02-14 04:06 AM
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