Hi @PavelL , thanks for your reply. I'm still having problems with lwip, i also have s32k3x8evb-q289 but i don't have a TJA daughter board so i need to test Ethernet on my S32K358BMU.
I'm using RTD3.0.0 with "TCPIP STACK 1.0.3 D2306", i attach my .mex config file where i tryied to replicate what you showed (clock configuration, GMAC pheripheral and pinout) and "device.c" with ETH_RESET from pin.
I tryied also to replicate your RTD turnaround manually since my rtd has no loopback define:
void device_init(void) {
uint16 pitPeriod;
/* Set RMII configuration for EMAC in DCM module */
//IP_DCM_GPR->DCMRWF1 = (IP_DCM_GPR->DCMRWF1 & ~DCM_GPR_DCMRWF1_EMAC_CONF_SEL_MASK) | DCM_GPR_DCMRWF1_EMAC_CONF_SEL(1U);
/* Manual RTD turnaround */
IP_DCM_GPR->DCMRWF1 = 0x80000040;
IP_DCM_GPR->DCMRWF3 = 0x2000;
....}
With this configuration, the example is able to achieve Gmac_Ip_InitDMA without Timeout and reaches mainloop, but pinging 192.168.0.200 from my Pc results in not reachable host and ping timeout.
With oscilloscope i verified RXC is present (25MHz when Phy negotiates 100Mbps or 125MHz when 1Gbps) so there is some traffic coming from ETH port. Meanwhile on TXC now i see 125MHz too but TXD0,1 are never triggered.
I hope you can find what is happening wrong here.