This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IND-COMMS-SDK: AM64X Profinet LED Callback - BF SF

Part Number: IND-COMMS-SDK

Tool/software:

Hi All,

I'm trying to implement the BF and SF LEDs for our Profinet device and was wondering if the setLed stack callback can be used for this? Is there any additional info on which LED is written under what circumstances by this callback function?

The Doxygen docu of the function does not provide a lot of information and the behavior that I was seeing does not match my expectation (e.g. PN_API_IOD_LedError is active if no Ethernet Link exists on Port1 or Port2, and inactive is when an Ethernet Link is established on any port, independent of any existing AR or Profinet Communication)

Thank you and kind regards
Philip Kees

  • Hi Philip,

    I have assigned the ticket to the PROFINET stack expert who will be looking into this issue.

    Best Regards,

    Laxman 

  • Hi Philip,

    your example is correct, our stack sets BF LED when no port is up on the device and it clears this LED when at least one port has a link-up.
    SF LED is set/cleared for example when a submodule has diagnostic information, or when application ready is pending, or if a submodule is wrong or not inserted, etc.

    However, in practice, we route all the above to PN_API_IOD_LedError LED which is LD23 on the evaluation board. You may use this LED as well by calling

    PN_APP_IOD_cbSetLed() function from your application.

    Kind regards,
    Kamil