Hi,
I am trying to initialize the Gmac on the s32k324.
I am basing my program off of the example code "MR_CANHUB3_IEEE1722", which runs fine on our s32k344 demo board.
When initializing the Gmac, it is getting stuck in a do()-while loop after attempting to provide a software reset (lines 405-414):
I have configured all of the proper pins to have their respective GMAC uses. As well as ensured the driver configurations are the same as in the example project.
I am not sure what I am doing wrong to cause this to not succeed, does anyone have any advice?
Solved! Go to Solution.
Hi,
it can be due to the S32K3 EMAC lacks of RMII reference clock. It should be provided by the external PHY/MAC chip or external clock (50MHz) after power up. Please check this clock on your board, to be sure of correct connection between S32K3 RMII reference clock pin and the clock source.
BR, Petr
Hi,
it can be due to the S32K3 EMAC lacks of RMII reference clock. It should be provided by the external PHY/MAC chip or external clock (50MHz) after power up. Please check this clock on your board, to be sure of correct connection between S32K3 RMII reference clock pin and the clock source.
BR, Petr
This was the issue, our PHY was not outputting the reference clock prior to attempting to initialize.