I've got it working using static IP, change the ping code to use static.
The issues were, due to using a 100Mbit switch I triggered 2 SDK issues.
enet_drv.c
1. The link status prints use a faulty mask.
if (((value>>14)&0x3) == 0x2)
dev->status |= ENET_STATUS_1000M;
else if (((value>>14)&0x3) == 0x2) <- Should be 0x1
dev->status |= ENET_STATUS_100M;
2. It is only configured for 1000M
dev->enet_reg->ECR.U |= ENET_ETHER_EN | ENET_ETHER_SPEED_1000M | ENET_ETHER_LITTLE_ENDIAN;
I guess the MAC should use the PHY negotiated speed?
regards
Andreas