I am using S32 Design Studio for MPC5748G DEV kit and I have come across following issue while testing LWIP ethernet example. SDK version which i am using is RMT1.0.0.
when I have init ethernet driver and Set MPC5748G Ethernet RDAR "Receive Descriptor Active Register" then I will Get Ethernet Inttrupt Event Register EEBERR(Ethernet Bus Error) error on EIR Register and Register ECR bit ETHEREN is disabled("Enables/disables the Ethernet MAC").
Due to above issue i could not transmit and receive ethernet packet.
Would you please help me out for this issue.
static inline void ENET_ActivateReceive(ENET_Type *base, uint8_t ring)
{
if (ring == 0U)
{
base->RDAR = ENET_RDAR_RDAR_MASK;
}
#if (FEATURE_ENET_RING_COUNT > 1U)
if (ring == 1U)
{
base->RDAR1 = ENET_RDAR_RDAR_MASK;
}
#endif /* (FEATURE_ENET_RING_COUNT > 1U) */
#if (FEATURE_ENET_RING_COUNT > 2U)
if (ring == 2U)
{
base->RDAR2 = ENET_RDAR_RDAR_MASK;
}
#endif /* (FEATURE_ENET_RING_COUNT > 2U) */
}
ENET_DRV_Init()
{
...
ENET_ActivateReceive(base, 0);
}