Hi,
I'm trying to get the ethernet interface on my TWR-K65F180M + TWR-SER working.
I try to use Processor Expert to do the Chip configuration.
It seems like the clock selection for RMII mode can not be done with PE. for some reason there is no choice available between EXTAL and ENET_1588_CLKIN.
See the attached screenshot.
Has anyone else tried to get Ethernet on the TWR-K65F180M + TWR-SER working?
Hi Peter,
I'm trying to get the ethernet interface on my TWR-K65F180M + TWR-SER working aswell.
I've never did something like that before. Do you have any tip how to get started?
Best regards,
Jill
Hello Peter,
Thank you for reporting of this issue. I am also able to reproduce the issue in a TWR-K65F180M project (with KSDK 1.3.0). I have reported the defect to Processor Expert development team (PEXMCU-4057).
Best Regards,
Marek Neuzil
Hello Peter,
Processor Expert development team has provided the following workaround:
Add the Init_SIM component into the project and select the SDHC0_CLKIN pin in the RMII clock source property (in the Component Inspector), see below:
Please note, that there is incorrect signal name of the ENET_1588_CLKIN signal but the selection of the SDHC0_CLKIN ensures that the RMIISRC bit (SOPT2 register) will be set to 1.
In the Component Inspector window of the PinSettings component, select the ENET tab and select the PTE26 pin in the ENET TS clock input selection property, see below:
This selection ensures routing of the PTE26 pin as the ENET_1588_CLKIN pin, i.e. there will be generated the following code:
/* Affects PORTE_PCR26 register */
PORT_HAL_SetMuxMode(PORTE,26UL,kPortMuxAlt2);
Please note that the RMII EXTAL - External reference clock property (on ENET tab of the PinSettings) cannot be used because the Init_ENET already define value of this property (allocation of the pin).
Best Regards,
Marek Neuzil
Thanx for sharing this article, it was really helpful.