Hello,
We are developing an application utilising the FEC of the MPC5777C using the evaluation board MPC5777CEVB. The FEC is operated in the MII-Lite mode and the data cache is deactivated.
When no debugger is attached we have detected no problems for both sending and receiving frames.
But when we attach a Trace32 debugger and add a breakpoint to a called function, e.g., the FEC-send-function, all frames sent by the MCU are marked as defective by the receiver and a CRC/align error is indicated. When the breakpoint is deactivated and the execution resumed everything works again.
This error is visible in the following configurations:
This problem does not manifest itself when we are using the MII internal loopback as described in the reference manual on page 2486 f..
It is also not present when we add a breakpoint to an uncalled function so that it is never activated.
Regards,
Bernd
Hi,
the only idea I have is some sort of signal interference. Thus you can try...
- decrease MII speed, or check difference of 10vs100Mbit.
- test different slew rate for output pins and enable HYS for inputs
- decrease JTAG speed
BR, Petr
Hello Petr,
thank you for the suggestions! While trying them I noticed that I had incorrect GPIO settings:
Correcting those errors solved my problem.
I find it curious that it it worked at all. Do you have an idea why this caused problems only when the debugger was active?
Regards, Bernd