Tool/software:
Facing issue with gPTP synchronization when using a MAC2MAC connection in either the ETHFW or PDK ENET example.
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.
Tool/software:
Facing issue with gPTP synchronization when using a MAC2MAC connection in either the ETHFW or PDK ENET example.
gPTP synchronization required valid speed and duplex detection on the port.
In case of a MAC2MAC connection or bootstrapped PHY, the MAC is configured with a static speed and duplex setting. However, the gPTP stack, by default, expecting this information from PHY, which is not available in these scenarios.
To resolve this, the actual link speed and duplex must be retrieved from the MAC port instead of the PHY.
Solution:
Update "LLDEnetGetLinkInfo" API to obtain speed and duplex information from the MAC Port.
Please find the required changes below:
File to Modify: <path to PDK>/packages/ti/transport/tsn/tsn-stack/tsn_combase/tilld/jacinto/lldenet.c
Modified API:

This change ensures that the gPTP stack can successfully detect and use valid link parameters in PHY-less or MAC2MAC configuration.