Sample code to send Ethernet packet
I'm using a PIC32MZ2048EFG064 on a proto board (no eval board) and a Pickit3. Right now I'm only trying to send a junk packet on Ethernet, but after days I've accomplished little. I'm using the standard Ethernet pins and RMII and have #pragma statements to set this, but at this point I've disconnected the PHY and am only looking for evidence of a transmitted packet by looking at MAC registers and the descriptor TSV bits. And if I'm lucky, a scope to see activity on ETXEN, ETXD0 or ETXD1.
When I set TXRTS it does clear itself, but there is zero evidence of anything else happening. No changes in the MAC registers, all TSV bits are zero, nothing out on my scope. I originally had 50MHz going into EREFCLK, but then assuming the MAC is probably totally static, feed just 1kHz in there now in case the high frequency isn't playing well with my proto wiring job. I've verified the EREFCLK connection is there since I temporary turned off Ethernet and set it as an input and wrote some code to look for transitions. That's all good.
I've looked at other sample code, followed the initialization in DS60001155D, and tried everything I can think of. I tried Harmony but it's darn near impossible to follow what that's even doing.
Does anyone have sample code for this chip so I can just send something out of the MAC pins? This peripheral is maddening.