Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

Lnk_mis ?

$
0
0
Hi Michael,

Here's some added information, in case of use:

1) The Online tab, for I/O > Devices > Device 1 (EtherCAT), flicks at about 1Hz, between State 'OP' and CRC 0, and State 'OP LNK_MIS A' and CRC blank - I didn't mention CRC before.

2) With the ECAT_SSC_0 APP, we have APP outputs led_err and led_run driving a P1.10 red LED, and P1.11 green LED, they're off and on, respectively.

3) About the management interface, I've found that's an ECAT_SSC_0 APP setting, see green-circled, on first attachment. As shown, it's checked.We would have inherited this, from the DAVE example EtherCAT project. Likewise, the other settings.

Turning now to the Infineon XMC4300 Relax board, to see what differences I can see, either in configuration or behaviour:

The Online tab for I/O > Devices > Device 1 (EtherCAT), reports steady State 'OP' and CRC 0. 2) and 3), are identical.

On the online tab for Box 1 (XMC_ESC), under DLL Status, Port A shows steady 'Carrier / Open', State steady 8, EtherCAT In port yellow LED steady on, and green LED pulses much quicker. I would say, at 20Hz approx.

With the XMC4300 Relax board, the yellow LED is driven by the Broadcom BCM5241XA1KMLG PHY LED1 output, and connected also to XMC43 pin 1.15, as allocated to ECAT_SSC_0 APP input 'p0_link'. With the green LED being driven by APP output 'led_link_act_p0', connected to XMC43 pin 1.12.

Our board is identical to the last paragraph, except that Microchip KSZ8051MLLI PHY LED0 output used instead, due to mentioned LED0&1 instead of LED1&2 naming difference.

Looking at the KSZ8051MLLI PHY datasheet, second attachment extract, in default LED mode 00, as red-circled, the PHY LED0 output blinks if link activity, see blue-circled. So I would say that, is the origin, of the flicking behaviour we see.

Does our PHY need to operate instead in LED mode 01, as orange-circled ? This presumably, would make the PHY LED0 output steady while link activity, as is the case for the Relax board BCM5241XA1KMLG PHY corresponding LED1 output.

Is steady yellow LED the intent for active EtherCAT links ?

If so, would you know how we can change our PHY register bits 1f:5:4, from 00 to 01, to effect the change, from blinking to steady ?

Presumably, the XMC43 must do this via the PHY management interface. However, that is under control, of the ECAT_SSC_0 APP and Slave Stack Code (SSC) components. Unchecking the green-circled makes the latter holler on build.

About the PHY address 0, purple-circled, that is presumably correct, to allow the mentioned components, to communicate with PHYs at their broadcast address. I did also try other values, 1 and 2, but that made no difference to our flashing yellow behaviour. I also tried checking the pink-circled, but that likewise made no difference.

Best regards,

David


Attachment 2919

Attachment 2920
?????

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>