SJA1110 gptp function question

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

SJA1110 gptp function question

1,460 Views
JAY_SUN1
Contributor II

Hi NXP Team

We are testing the SJA1110 PtP function using the S32g_vnp_rdb2 development board. The sample code is gptp_freertos_sja1110x.

But currently, it stops at the position of the DefaultISR code (as shown in Figure 1). At the same time, we observe that PtP packets are sent out (as shown in Figure 2). The program execution will stop at DefaultISR after the PTP packet is sent out. We don't know what happened to the DefaultISR.

Do you have any suggestions on how to debug? Could you please help with it?

The following is the test we did for the sample code "gptp_freertos_sja1110x":

We found that by removing the GPTP_TimerPeriodic() function (as shown in Figure 3), the program will execute normally, and the ping function can also be executed (as shown in Figure 4/5), but the PtP packet will not be sent out.

As a result, we want to debug the GPTP_TimerPeriodic() function.,we want to trace this function, but it seems to be a lib function (as shown in Figure 6 below), we can't continue to debug, so we would like to ask how to debug and test for the next.

Figure 1

 

JAY_SUN1_1-1668489512258.png

Figure 2

JAY_SUN1_2-1668489542897.png

Figure 3

JAY_SUN1_3-1668489563194.png

Figure 4

JAY_SUN1_4-1668489593539.png

Figure 5

JAY_SUN1_5-1668489617805.png

Figure 6

JAY_SUN1_6-1668489633080.png

BR

Guanlin

 

Tags (1)
0 Kudos
Reply
4 Replies

1,285 Views
lanny
NXP Employee
NXP Employee

Hi Jay,

1. This demo should not work on S32g_vnp_rdb2 development board. We had a suitable gptp projects for S32g_vnp_rdb2 board, AVNET will share with you. 

2. we need to check your gptp configuration accordingly.

 

 

Best Regards

Lanny

 

0 Kudos
Reply

1,346 Views
JAY_SUN1
Contributor II

Hi NXP Team,

We have get license through AVNET, and download the middleware of gptp, but it seems like works in the same way,

螢幕擷取畫面 2022-11-30 141837.jpg

螢幕擷取畫面 2022-11-30 141843.jpg

I set some breakpoints to see the program, it stop at the position as below

JAY_SUN1_0-1669789766648.png

messageImage_1669626436987.jpg

I use the ptp of linux to be grandmaser, but SJA1110 can't receive ptp packets, wireshark only see one packet output by sja1110.

messageImage_1669620587857.jpg

NXP experts, please help how to debug.

BR

Jay

0 Kudos
Reply

1,329 Views
JAY_SUN1
Contributor II

Hi NXP Team,

We have tried another test, if we connect two sja1110, connect port5(slave) and port7(master) on both sides, the program doesn't stop, observed from wireshark, there are only sync packets, but no followup packets.

messageImage_1669614793837.jpg

BR

Jay

0 Kudos
Reply

1,404 Views
guoweisun
NXP TechSupport
NXP TechSupport

Please help and fill below information:

1: company/location

2: end product

3: project schedule

4: volume/annual

0 Kudos
Reply