I am trying to use the SFP port of the TEBF0808-04A base board using the TE0807-02-4BE21-AK.
I'm having the same problem to test the SFP in loopback with Lwip echo server example (I looped the fiber cable back to the same SFP) with the RPU (Cortex-R5_0). did you manage to have a working example ? in case if you don't have it right, here are my configurations (vitis2019.2, vivado2019.2) :
I use the reference design SK_DEMO1 and in vivado i've added the 1G/2.5G Ethernet PCS/PLA or SGMI IP with the following parameters :
- Ethernet MAC: Zynq PS Gigabit Ethernet Controller
- Standard: 1000BASEX,
- Core Functionality - Physical interface: Device Specific Transceiver, Transceiver options: Ref clk: 125 MHz, Transceiver Location: X0Y3, DRP clock Frequency: 50 MHz (the other options are kept to default including enabling the auto-negotiation
- gtrefclk_in is connected to the MGTRFCLK1N/P226 --> B10 --> B227CLK1P/N to have the 125 MHz
- independant_clock_bufg to the plclk_1 with the value of 50MHz
- phyaddr to a constant value of 9 (as in the previous posts)
- config_vector to a constant value of 0b10000
- config_valid, an_adv_config_val, an_restart_config and reset to a constant value of 0
- an_adv_config_vector to a constant value of 0b0000000110100000
- signal_detect to a constant value of 1
- sfp is connected to B230-RX2_N/P --> B226_RX2_N/P --> F1/F2 and B230-TX2_N/P --> B226_TX2_N/P --> F5/F6
I've exported the hardware design using the command: TE::hw_build_design -export_prebuilt and i've generated the programming files with TE::sw_run_vitis -all (i don't use for now the SD, card and petalinux)
In vivado i fist run the FSBL which I hope configure the OUT1 to 125MHz of the Si5345 and then create a new plateform for the baremetal cortex-R5 with lwip.
When i start the debug session i have the following result (normally i should get for the phy address a value of 9 and if the link is up or down):
--------------------------------------------------------------------------------
TE0807 TE_XFsbl_HookPsuInit_Custom
Configure Carrier I2C Switch 0x77
Configure PLL: SI5345-B
Si534x Init Registers Write.
Si534x Init Complete.
Status 0xC:0x0, 0xE:0x0, 0xD:0x0, 0x11:0, 0xF:0 (...waiting for calibration...256PLL Status Register 0xC:0x0, 0xE:0x0, 0xD:0x0, 0x11:0, 0xF:0.
USB Reset Complete
PCIe Reset Complete
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Xilinx Zynq MP First Stage Boot Loader (TE modified)
Release 2019.2 Oct 29 2020 - 15:43:26
Device Name: XCZU4EG
--------------------------------------------------------------------------------
TE0807 TE_XFsbl_BoardInit_Custom
Configure Carrier I2C Switch 0x73 for EEPROM access
--------------------------------------------------------------------------------
PMU-FW is not running, certain applications may not be supported.
-----lwIP TCP echo server ------
TCP packets sent to port 6001 will be echoed back
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
autonegotiation complete
link speed for phy address 0: 1000
Board IP: 192.168.1.10
Netmask : 255.255.255.0
Gateway : 192.168.1.1
TCP echo server started @ port 7