S32G - GMAC - KSZ9031RNX MCAL issue ?

cancel
Showing results for 
Search instead for 
Did you mean: 

S32G - GMAC - KSZ9031RNX MCAL issue ?

555 Views
LamNH
Contributor I

Dear experts, I'm working with Autosar 4.4 onboard S32G

I'm using ethernet MCAL which has build ver: S32XX_MCAL_1_0_0_RTM_ASR_REL_4_4_REV_0000_20191213

when I enable the loopback mode in GMAC

After Eth_Transmit() is invoked, ISR_Eth_TxIrqHdlr_0/ ISR_Eth_RxIrqHdlr_0 will be invoked.

But when I disable loopback mode in GMAC (use External tester to capture the Eth packet)

   - ISR_Eth_TxIrqHdlr_0 is invoked but I found no packets transmitted in the tracer window of the Canoe tool ( I use VN5640)

   - when I send a packet to the board from Canoe, ISR_Eth_RxIrqHdlr_0 is not invoked too.

I have checked the register (GPDI/ GPDO) of the PIN that connected to the PHY, I found their level is not changed when data is transmitting. I also check the link, It is UP with 1000Mbps (in the register LNKSTS of the GMAC)

Configuration in module Port:

PE_02/GMAC0_TX_CLK/OUTPUT
PE_03/GMAC0_TX_EN/OUTPUT
PE_04/GMAC0_TXD0/OUTPUT
PE_05/GMAC0_TXD1/OUTPUT
PE_06/GMAC0_TXD2/OUTPUT
PE_07/GMAC0_TXD3/OUTPUT
PE_08/GMAC0_RX_CLK/INPUT
PE_09/GMAC0_RXDV/INPUT
PE_10/GMAC0_RXD0/INPUT
PE_11/GMAC0_RXD1/INPUT
PE_12/GMAC0_RXD2/INPUT
PE_13/GMAC0_RXD3/INPUT
PD_12/GMAC0_MDC/OUTPUT
PD_13/GMAC0_MDIO/INOUT

ECU: S32G274A

PHY: KSZ9031RNX 

Please let me know the reasons that will lead to the issues above. Do I need to config something else in Port and Eth modules? or Do I need to config the register in the PHY by using MDIO?

 

0 Kudos
0 Replies