ECAT SOEM demo in RT1180-EVK board can't send out pkt

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

ECAT SOEM demo in RT1180-EVK board can't send out pkt

407 Views
shrek-tan
Contributor II

I‘m trying the “evkmimxrt1180_soem_gpio_pulse_freertos_cm7“ in RT1180-EVK board, but  I found the demo can't send out the Ethercat packets.

In the demo code, I found It use the ENET4, but it can't find any Ethercat slaves.

then I check the port's registers about packets TX and RX (baseaddress : 0x60B00000u),  the tx registers has numbers(SITFRM0, SITOCT0), but there was non data when  I capture packet on line.

Is there any other setting about EVK board when run the ecat soem demo ?

0 Kudos
Reply
4 Replies

353 Views
shrek-tan
Contributor II

I found when the port is connected to the SLAVE, the link status of PHY alternates  up and down.

0 Kudos
Reply

308 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @shrek-tan,

Could you help me with the following questions?

Did you make any changes to the example?

Did you make any modifications to the EVK?

Could you share how you are setting up the slave?

How many slaves are you setting up?

If you set up the slave before running the example, does the example still fail to find the slave?

Best Regards,
Pablo

0 Kudos
Reply

230 Views
shrek-tan
Contributor II

Thanks for your reply,

I had fix this problem by change the autoneg setting  from fause to true, then the link status can stably remain in the up state.

phy8201Config.autoNeg = true.

ESC phy chip is TI DP83848

But then ,I have met an other issue: 

When the current EtherCAT master station's network port is directly connected to the slave station, the two cannot interact, and the slave station cannot go online. Later, when the network port of the master station environment in this demo was directly connected to the PC, it was found that the packets captured by the PC's network port were 19-byte packets with an ETH TYPE of 0x888E. However, if a HUB is first connected in series between the master station environment and the PC, the PC's network port can capture the correct EtherCAT packets (BWR & BRD) sent from the master station demo environment.

 

 

0 Kudos
Reply

120 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi,

I'm glad to hear that you managed to resolve the issue and thank you for sharing your discoveries with the community.

If there is anything else we can help with, please do not hesitate to use our community.

Best Regards,
Pablo

0 Kudos
Reply