Ethernet RMII Mode on TWRK70F120M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet RMII Mode on TWRK70F120M

993 Views
muhammad_qasim
Contributor I

Hi

I am trying to run Ethernet Device on TWRK70F120M with RMII Mode Enabled.

Currently My CPU is running in PEE mode [Serial, I2C, SPI devices are running]


I have done following jumper settings on K70 Board

J18: OFF

J19: OFF

I have done following jumper settings on TWR-SER board

J2: 3-4

J3: 2-3

J12: 5-6, 9-10

I have done following configurations for Ethernet in Ethernet code.

/* Select ALT 4 function on PTB1 for RMII_MDC */

/* Select ALT 4 function on PTB0 for RMII_MDIO */

/* Select ALT 4 function on PTA14 for RMII_CRS_DV */

/* Select ALT 4 function on PTA13 for RMII_RXD0 */

/* Select ALT 4 function on PTA12 for RMII_RXD1 */

/* Select ALT 4 function on PTA5 for RMII_RXER */

/* Select ALT 4 function on PTA16 for RMII_TXD0 */

/* Select ALT 4 function on PTA17 for RMII_TXD1 */

/* Select ALT 4 function on PTA15 for RMII_TXEN */

/* Enable RMII_REF_CLK / OSC0ERCLK clock in SIM_SOPT2 Register[TIMESRC[ */

/* Enable ENET Clock in SIM_SCGC2 register  */

Am I missing any jumper settings?

Am I missing any configurations related to CPU or Ethernet?

Am I missing clock configurations like CLKIN0 (PTA18)?

My CPU driver stuck if I do above jumper settings because [MCG_S[IREFST] bit is not getting low [Source of FLL reference clock is the external reference clock] and PHY of Ethernet is not getting UP.

Labels (1)
0 Kudos
4 Replies

480 Views
DavidS
NXP Employee
NXP Employee

Hi Hafiz,

Attached is ZIP with pictures of the TWR-K70F120M and TWR-SER to enable Ethernet with the default RMII mode.

The TWR-SER card is jumpered to provide 50MHz to the K70 and to the PHY on the TWR-SER card.  This aligned the clock domains of the PHY and K70 MAC.

The TWR-K70F120M is jumpered to receive the 50MHz clock from TWR-SER.

Hope this helps.

Regards,

David

480 Views
uabc_mac
Contributor I

Hi David, I am working with a tower k60F and KSZ8041NL driver, I am traying to enable the  ethernet socket in RMII mode in my own design card.

I am using the software drivers without changes from k60f120m and MQX 4.0.

The actual situation is: Leds On on ethernet socket.

                                  Software finish configurations as correct (IP, mask, dns)

                                  Sockets TCP OK.

However there is not answer from a ping command.

I discovered a problem: The RMII_MDC does not have the characteristic signal.

My question is: What is the signal source for RMII_MDC or what is the function to control RMII_MDC port? in intention to know the source of problem.

Thanks in advance for your help.

0 Kudos

480 Views
DavidS
NXP Employee
NXP Employee

Hi Cosio,

Sorry for delayed response.

Have you resolved your issue?

If not the MDC and MDIO signals are used as a communication port to setup the PHY (i.e. gain access to internal PHY registers for status and control should the default setup need changing).

The TWR-K60F120M initializes the Ethernet pins in the BSP init_gpio.c _bsp_enet_io_init() function.

Low level PHY functions are in the phy_ksz8041.c file.

Regards,

David

0 Kudos

480 Views
mjbcswitzerland
Specialist V

Hi


See page 9 of the following document for recommended settings for your tower kit:

http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis_demo.pdf

Regards

Mark

0 Kudos