i.MX RT1170 TSN demo config error

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

i.MX RT1170 TSN demo config error

405 Views
HanaYu
Contributor II

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

 

 

 

 

 

Tags (1)
0 Kudos
2 Replies

400 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @HanaYu ,

    Do you also test the directly MIMXRT1170-EVK two boards connection, whether that works or not?

   If that works OK, just your own board can't works, I think still related to the code. Can you use the same pin defined in the code with your own board? I mean, code, not modification, just use the correct pins, whether that works or not?

   Maybe also related to the code, just pinmux.c modification to other port, do you also check the source code, whether it related to the related GPIO pin calling, eg, ISR, GPIO detail control?

Best Regards,

kerry

0 Kudos

387 Views
HanaYu
Contributor II

Hi @kerryzhou ,

    Thank your reply!I'm very sorry to tell you  that I can't run tsn demo correctly. I modified  your mentioned ,do you have other adivce ? Or  do you have tsn version 2.1.10  's log (Master and Slave)?  Could you send me ?Thans you !

Best Regards,

Hana

0 Kudos