Hi @kerryzhou ,
I have made two IM.RT1176 boards refered by NXP design, but when I used tsn demo by NXP, I found they couldn't transmit messages.I runned 1G ethernet demo in mcu_Xpresso successful.And I used this code sources by Nxp, that edtion is 2_1_10,
genavb_tsn-mcuxpresso-SDK_2_10_0-4_0_3.zip 、SDK_2_10_0_MIMXRT1170-EVK.zip
genavb-apps-freertos-4_0_3.tar.z 、genavb-tsn_app-evaluation-freertos_rt1176-4_0_3.tar.gz,
mcuxpresso-sdk-SDK_2_10_0_MIMXRT1170-EVK_rfp-4_0_3.patch,
And I changed these code, one is pinmux.c,
gpio_sd_b2_05 --- b2_09 --> GPIO_AD_17 --GPIO_AD_23
remove BOARD_InitPinsPPS
because I my flash pins is not same as NXP,the other one is flash Startup mode.
and I also used 2.9.0 edtion, but it showed the same problem.
My problem showed that,I have Followed the instructions :
Master setting: mkdir port0
write port0/ip_addr 192.168.1.11
write port0/gw_addr 192.168.1.254
write port0/net_mask 255.255.255.0
write port0/hw_addr 00:11:22:33:44:55
mkdir tsn_app
write tsn_app/role 0
write tsn_app/mode 2
write tsn_app/num_io_devices 1
mkdir fgptp
write fgptp/gmCapable 1
Slave setting:mkdir port0
write port0/ip_addr 192.168.1.14
write port0/gw_addr 192.168.1.254
write port0/net_mask 255.255.255.0
write port0/hw_addr 00:11:22:33:44:66
mkdir tsn_app
write tsn_app/role 1
write tsn_app/mode 2
They couln't transmit message. And My log showed too much errflow ,and err frames is as many as tx frames,like this q1 tx: 476603, err: 346192,socket_stats_print :link down. You can check my log (with attachment).And gptp_stats_dump : Port(0) domain(0, 0): Role: Disabled Link: Up asCapable: No neighborGptpCapable: No --> Role always showed Disabled. It can't changed follow my settings(Slave or Master).I don't know if this is related to the type of the main chip. Because My four core boards has two types, one is MIMXRT1176CVM8A0P94B CTAC2132B ,the other one is PIMXRT1176DVMAA094B CTZB2032B. And NXP evk board is MIMXRT1176 DVMAA0P94B CTAA2109B. When I used MIMXRT1176CVM8A0P94B CTAC2132B ,it may changed role by setting but not just in a certain probability. The other one is not changed. Could you give me some advice ?Thank you!
Best Regards,
Kerry