Possible Bug in PE with ENET Peripherial

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Possible Bug in PE with ENET Peripherial

2,565 次查看
peterruesch
Contributor IV

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?

标记 (2)
0 项奖励
回复
4 回复数

2,229 次查看
jill1
Contributor I

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

0 项奖励
回复

2,267 次查看
marek_neuzil
NXP Employee
NXP Employee

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

0 项奖励
回复

2,267 次查看
marek_neuzil
NXP Employee
NXP Employee

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:

pastedImage_0.png

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:

pastedImage_2.png

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

0 项奖励
回复

2,216 次查看
rareskysix
Contributor I

Thanx for sharing this article, it was really helpful.

0 项奖励
回复