I would like to know how to know what causes mpc5748g to reset.I use the following code to test the Ethernet communication.Sometimes Ethernet can not communicate properly, I tested the RESET pin and found it was low.I have to reset the chip, Ethernet will be able to communicate properly.
Original Attachment has been moved to: ENET_MII.zip
Hi,
To find the reset source you can read:
RGM FES / DES registers to find the reset root cause.
I expect your situation is:
After your Power on reset your device is running and them it is reset.
Then do attach with debugger and read RGM FES / DES registers.
This will tell you your reset cause.
Peter
Hi,
Thanks to your help I found the reason for the chip reset.
But sometimes I found that Ethernet communication failed and the chip was not reset.I debug the code and find the code stopped at the location shown below.
The state of the board and the pC connection is also changed from success to a failed state.
→