This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28386S: Sample Project for Ethernet in RMII Mode

Part Number: TMS320F28386S
Other Parts Discussed in Thread: C2000WARE,

Hello,

I have a customer who is in the process of designing with the TMS320F28386S, and is currently working on ethernet. They have C2000ware downloaded and have checked the available ethernet example projects, but none seem to be made for RMII mode as default. Therefore they have the following questions:

 

Q1: Are there any C2000 example projects that use ethernet in RMII mode, or is every example contained within C2000ware?

Q2: What changes can be made to pre-existing demos to enable and utilize RMII mode? Please provide details on the changes (e.g., what configs need to be changed, and what to change then to, etc).

           ※Please provide an official response, instead of just referencing what another user did. The goal is to get as close to an official TI demo as possible, and allow my customer to confidently continue with their development. 

Please let me know if you need any additional information.

Thank you

Michael

  • Hi, 

    Eventhough the MAC support RMII mode, ENET_RMII_CLK is not brought up to PHY. So the board will not support RMII mode without external Connection.

    If the connection can be established do the following changes in the code.

    -> Configure EMAC subsystem for RMII mode    (initInterfaceConfig.phyMode = ETHERNET_SS_PHY_INTF_SEL_RMII)

    -> Give the clock source as Internal.   (initInterfaceConfig.clockSel = ETHERNET_SS_CLK_SRC_INTERNAL)

    -> Configure PHY Address to 1U   (Ethernet_configurePHYAddress(EMAC_BASE, 1U))

    -> Configure PHY for RMII mode.     (Ethernet_writePHYRegister(EMAC_BASE, reg_Addr, writeData)

  • Hi Siva,

    Thank you for the response.

    If possible, could you please clarify what you mean by "external connection" and "If the connection can be established"? Are you simply referring to the necessary connections between the MAC and external PHY device?

       →In that case, my customer is currently designing the hardware that would include all of the necessary connections between the TMS320F28386S MAC and external PHY (considering the DP83822HRHBT), so it's assumed that all connections would be present.

    Does your response also confirm that there are no pre-existing RMII demos?

       →If this is the case, I will convey to reference C2000ware demos while considering the four main code changes you provided: Configure EMAC subsystem for RMII mode, Give the clock source as Internal, Configure PHY Address to 1U, Configure PHY for RMII mode.

    Once again, thank you for the support, and I look forward to your response.

    Michael

  • Hi Michael,

    →In that case, my customer is currently designing the hardware that would include all of the necessary connections between the TMS320F28386S MAC and external PHY (considering the DP83822HRHBT), so it's assumed that all connections would be present.

    Yes , whatever the controlcard is lacking is that connection between RMII_CLK and External PHY. If that can be established, the EMAC module supports RMII mode of operation.

    Does your response also confirm that there are no pre-existing RMII demos?

    As of now there is no Demos for RMII support in C2000ware