• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Multicore DSP » C64x Multicore DSP Forum » tci6486 / tms320c6472 EMAC problem
Share
C6000 Multicore DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Training Available
TI provides self-paced online training that introduces the primary components of the KeyStone II family of SoC devices.

  • KeyStone II SoC Overview >
  • KeyStone II Software Overview >
  • KeyStone II ARM Cortex-A15 Corepac Overview >
  • More Information >
  • Check out
    Multicore Mix blog
    • $core_v2_blog.Current.Name

      It’s our second anniversary, but you get the present!

      Posted 5 days ago
      by Lindsey Bare
      It’s hard to believe it’s already been two years...
    • $core_v2_blog.Current.Name

      Limited time offer: Save $100 on Keystone-based EVM!

      Posted 18 days ago
      by tscheck
      Have you been thinking about ordering a TI Keystone-based EVM...
    • $core_v2_blog.Current.Name

      Imagine the impact…TI’s KeyStone SoC + HP Moonshot

      Posted 29 days ago
      by Sanjay35057
      Last week, market leader Hewlett Packard announced a huge change...

    tci6486 / tms320c6472 EMAC problem

    tci6486 / tms320c6472 EMAC problem

    This question has suggested answer(s)
    albertburbea
    Posted by albertburbea
    on Oct 15 2009 06:11 AM
    Intellectual330 points

    Hi everybody,

    I am working on a board based on the tci6486 and I have a problem working with the EMAC0,

    The EMAC0 is configured to work at RGMII, forced 1 Gb/s, but the clock outputs from this module are just senseless (I get 125 KHz on TX clk for example...)

    I tried to turn on PLL2 using the CSL I reveived from TI, but there was no change in the outputs. I am wokring with a 25MHz clock input, the PLL2 should multiply it by 20 and use this for EMAC0 operation.

    Now, I have no PHY on the board. Is this relevant? What am I missing? Should I provide another external clock to the emac ? I read many times TI docs about emac, but there is no mention either of the clock setup or any other initialization needed.

    Bottom line: HELP!!!!

    Albert

    tms320c6472 EMAC TMS320TCI6486
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • RandyP
      Posted by RandyP
      on Oct 19 2009 00:47 AM
      Guru59970 points

      Since this is not a publicly available device at the time of this posting, I do not have any documentation links to offer. But I will assume that you have the lastest EMAC User's Guide for the DSP you are using.

      Please read section 2.1.4 RGMII Clocking to understand how the clocking is handled and how it interacts with the PHY.

      125 KHz does not make sense, but 125 MHz would be correct.

      Search for answers, Ask a question, click  Verify  when complete, Help others, Learn more.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • sungyi chen
      Posted by sungyi chen
      on Oct 22 2009 11:03 AM
      Prodigy250 points

      Albert,

      I had the simliar problem for tci6486 EMAC0 for RGMII interface. I will recommend you to check PLL2 configuration.

      You need to check the PLL2 control register "bit 0" for enable PLL2 after CSL PLL2 control API.

      SYSCLOCK13 for PLLDIV1 = 0x8001  // 250MHz for 1000M RGMII

      SYSCLOCK14 for PLLDIV2 = 0x8003 //125Mhz for 100M RGMII

      SYSCLOCK15 for PLLDIV3 = 0x8063 //5Mhz for 10M RGMII

       

      To whom might concern,

       

      If I sat MACCONTL as RGMIIEN, I got 25Mhz clock at EMAC0 TX clock.

      I tried to sent boardcast packet and I could only sent 25 packets out.

      After 25 boradcast packets, EMAC0 was crushed.

       

      I tired to set GMIIEN and gigabit in MACCNTL and I could get the TX dtat with 125Mhz TX CLK. (1000Mbps)

      If I changed to set only GMIIEN in MACCNTL and I could get the TX data with 25Mhz TX CLK. (100Mbps)

      So I guessed I set the PLL2 correctly and it was working. BUT I can NOT run tci6486 EMAC0 for RGMII mode.

      Does anyone can help me, please?

       

      HELP ME!! HELP ME!! PLEASE[:S]

       

      Sungyi cheh

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • albertburbea
      Posted by albertburbea
      on Oct 22 2009 12:11 PM
      Intellectual330 points

      Hi

      the problem was that the DSP did not receive RGMII RX clock as input and this seem as absolutely needed. It would be interesting to know if there is a way to force the RGMII to run at gigabit speed (e.g. outputting the TX clock) without and external RX clock alive.

      Albert

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tscheck
      Posted by tscheck
      on Oct 22 2009 17:38 PM
      Suggested Answer
      Genius13015 points

      Albert,

      The RX clock must be present for the RGMII interface to operate, this includes the TX clock being generated.

      Regards,

      Travis

      If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tscheck
      Posted by tscheck
      on Oct 22 2009 18:45 PM
      Genius13015 points

      Sungyi,

       

      The MACSEL config pins are really what enables the EMAC mode (MII, GMII, RGMII, etc) and the clocking used.  I'm not sure if the missing RX clock, that Albert mentioned, fixed your problem too, but if you are still having problems generating the 125Mhz TX clock for RGMII 1Gb mode, please send a dump of the EMAC control registers.

      Regards,

      Travis

      If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • sungyi chen
      Posted by sungyi chen
      on Oct 25 2009 10:16 AM
      Prodigy250 points

      Travis,

      After I configured PHY as loopback mode, I could get 125Mhz RX clock and RX data in by oscillator.

      But I cannot get the any receive data in DSP side.

      I checked MACSTAUS and RX relative registers but it did not show any error or receive packet flag.

      Could you help me to figure out which register that I should check or what problem is, please?

      thank you for your help.

       

      Sungyi

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tscheck
      Posted by tscheck
      on Oct 27 2009 10:44 AM
      Genius13015 points

      Sungyi,

       

      I'm not sure of your setup, are you using the TCI6486 EVM or your own board?  Also, are you already using the Network Developer's Kit (NDK)?  If not, this is the first thing we recommend to our C64x customers.  The NDK can be downloaded for free at:

      http://focus.ti.com/docs/toolsw/folders/print/ndktcpip.html

      It covers both intialization and packet example using the MAC.  If you can follow this example, you should be able to get around your current issue.

      Regards,

      Travis

      If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • sungyi chen
      Posted by sungyi chen
      on Oct 27 2009 11:09 AM
      Suggested Answer
      Prodigy250 points
      BDSP-A post(20091026_EMAC0_test).rar

      Travis,

      I just got the new NDK today. I reference the NDK and TCI6486 CLS example.

      I can get the broadcast data through the TCI6486 EVM EMAC1 successfully.

      I just need to know why I cannot receive anything from EMAC0 port.

      I tried to configure TCI6486 EVM EMAC0 PHY by "ges" command from u-boot.

      it did not work so I guess it was why I can not get EMAC0 external loop-back working on TCI6486 EVM.

      For our target DSP board, we configured the EMAC0 as RGMII and enabled PHY loop-back mode.

      I can get the RX Clock at 125Mhz and RX data from oscilloscope but I can not get any RX signal in DSP side. (no error or interrupt from MAC RX register).

      could you help me to check my setting for RGMII EMAC0, please?

      thank you.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tom Johnson16214
      Posted by Tom Johnson16214
      on Oct 27 2009 18:07 PM
      Expert5630 points

      Sungyi,

      You discuss use of the TCI6486 EVM.  Do you have the TCI6486 EVM User's Guide?  It explains the configuration of the EVM hardware so that you can develop code on the TCI6486.  Jumpers on the EVM allow the DSP to be configured for Ethernet Boot mode.  The TMS320TCI648x Bootloader User's Guide describes the packet format and exchange process needed to load a binary image on the DSP.  The Ethernet Bootloader runs from ROM and configures everything needed for Ethernet operation.  You can then reference the TMS320TCI6486 DSP EMAC/MDIO Module User's Guide so that you can use Code Composer Studio to access the EMAC configuration and status registers.  The EMAC User's Guide describes the configuration options that you are seeking.  Do you have access to these documents?

      Tom

      -----------------------------------------------------------------------------------------------------------------------------
      Please click the Verify Answer button on this post if it answers your question.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • sungyi chen
      Posted by sungyi chen
      on Oct 27 2009 21:33 PM
      Prodigy250 points

      Tom,

      I read the TCI6486 EVM user guide but I can not find the Ethernet boot setting in the document.

      I tried to configure EMAC0 PHY by u-boot "ges" command but it did not work.

      ges dreg 0x2 0x0-----> reg = 0xffff

      ges mreg 0x2 0x2000------> reg = 0xffff

       

      Could you help me for RGMII EMAC0 PHY (88E1143) by u-boot, please?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Tom Johnson16214
      Posted by Tom Johnson16214
      on Oct 28 2009 10:50 AM
      Suggested Answer
      Expert5630 points

      Sungyi,

      There is no need for 'ges' UBOOT commands to get the TCI6486 EVM to connect to the network.  The boot-up process configures the TCI6486 EVM for network connection using the 'enet config' UBOOT commands.

      Since you are using the TCI6486 EVM, you should ask your local FAE for support.  There are scripts and example programs available to demonstrate proper operation.

      Tom

      -----------------------------------------------------------------------------------------------------------------------------
      Please click the Verify Answer button on this post if it answers your question.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use