![](https://private-user-images.githubusercontent.com/29487339/298427585-75ccc568-4f17-48a1-b2af-20211f98896c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTQ5NzgsIm5iZiI6MTcyNDI1NDY3OCwicGF0aCI6Ii8yOTQ4NzMzOS8yOTg0Mjc1ODUtNzVjY2M1NjgtNGYxNy00OGExLWIyYWYtMjAyMTFmOTg4OTZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE1Mzc1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzMzVlOTgzMWE0NGFjMTBmYmI2MWUwMzZjY2JmYjllZTg2NzZkNjM4NWM2NDMzNWIwZmM3NzQ4YjA1M2EyZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HJhxDCLfboFAsqc-LIp5b2tyVIJ7xf-70-0ZA1Z_lyo)
This example is modified from https://www.gowinsemi.com/en/support/ip_detail/150/
The purpose of the SFP 2.5G loop is to verify the sanity of the SFP+ hardware and interface.
The reference clock of the serial high speed bank 1 is 125MHz. Such reference clock is generated from the U2 MS5351M.
No IIC is needed to setup the MS5351M oscillator as OTP is set to 125MHz (differential clock).
Open serial terminal (no newline and carrier return)
Enter the following address:
- E> W 0003 F5A1490D
- E> R 0003
- R< G 0003 F5A1490D
- E> R 0080
- R< G 0080 80000000
- E> W 0000 00000001
- E> W 0001 00000001
- E> W 0030 00000021 // LED should off
- E> W 0030 00000001
- E> W 0020 00000063
- E> W 0011 00000003 // LED should off (link down)
- E> W 0011 00000002 // LED should on (link up)
Reference: https://www.gowinsemi.com/upload/database_doc/2787/document/65c1e06fef5ce.pdf