• 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 » Microcontrollers » Hercules™ Safety Microcontrollers » Hercules™ Safety Microcontrollers Forum » EMAC example
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

EMAC example

This question is answered
subramanya sathyanarayana
Posted by subramanya sathyanarayana
on Apr 16 2012 02:39 AM
Intellectual270 points

Hi,

I am developing the project with TMS570LS3137 MCU. Part of this project is communication over Ethernet. can any body suggest me how to start for that ? Does anyone has a example project or a driver for TMS570LS3137 MCU?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • subramanya sathyanarayana
    Posted by subramanya sathyanarayana
    on Apr 16 2012 06:29 AM
    Intellectual270 points

    And how can i generate code using HALCoGen? ( I tried enabling only EMAC driver. And it asked me for the EMAC address in EMAC configuration? How to proceed there?? )

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zhaohong Zhang
    Posted by Zhaohong Zhang
    on Apr 16 2012 12:41 PM
    Genius9275 points

    Hi, there.

    As of today, HALCoGen does not support the EMAC module. I am attaching a CCS3.3 EMAC testcase where you can can see how EMAC is setup to send and receive messages.  3201.EMAC_loopback.zip

    The test executes from RAM. EMAC is configured in an internal loopback mode. You can also change one line in main() function to use external loopback via the PHY. If you choose external loopback, you will need to set up PINMUX registers for EMAC functions.

    Once you unzip the file, you can find the CCS project in the subdirectory of "\EMAC_loopback\platform_verif\devices\GLADIATOR\R4\EMAC1\EMAC\EMAC07_loopback_debug". Please let me if it would help.

    Thanks and regards,

    Zhaohong

    EMAC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pramod Bhardwaj
    Posted by Pramod Bhardwaj
    on Apr 17 2012 03:04 AM
    Prodigy450 points

    Subramanya,

    Starting HALCoGen 3.00.01 release, we have added EMAC driver support. This contains the EMAC & MDIO Drivers. HALCoGen GUI allows you to define the MAC Address and the PHY address for use in MDIO. Based on your network stack you will have to call the appropriate EMAC/MDIO APIs. Since the Ethernet PHY is external, you will have to create the PHY drivers first. 

    We have are planning to release a demonstration of EMAC Driver & lwIP Integration soon. Details will be available at this link:http://processors.wiki.ti.com/index.php/HALCoGen_Ethernet_Driver_and_lwIP_Integration_Demonstration

    Regards,

    Pramod

    emac ethernet halcogen lwip
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • subramanya sathyanarayana
    Posted by subramanya sathyanarayana
    on Apr 17 2012 04:12 AM
    Intellectual270 points

    Thanks Pramod and Zhaohong Zhang for replying.
    @ Pramod: I was going through the programming sequence using HALCoGen Generated drivers in the link you mentioned. There is a procedure to operate EMAC modules which says,"Using HALCoGen enable the PINMUX for EMAC & MDIO. Generate the code for HAL & system initialization. " But in PINMUX, i couldn't find any EMAC or MDIO.

    Where can i initialize them? And is the MAC address user defined?

    It would be great if you could pass me on any sample demo project built through HALCoGen.

    @Zhaohong Zhang: I'm using CCS v5, and actually i didn find any project in the zip file. But i created a new project  and added all those files and tried to run it. But it didn't work. It neither gave any errors nor the output. Please let me know if i need to make any modifications before running it.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pramod Bhardwaj
    Posted by Pramod Bhardwaj
    on Apr 17 2012 04:29 AM
    Prodigy450 points

    Subramanya,

    The external PHY is connected vial RMII/MII. Depending on your board design, you will have to select RMII/MII on the PINMUX tab. (eg., HDK uses MII to connect to external PHY).  Apart from this you will have to enable the MDIO PinMux on G3 (in pinmux tab).

    Regards,

    Pramod

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zhaohong Zhang
    Posted by Zhaohong Zhang
    on Apr 17 2012 08:35 AM
    Verified Answer
    Verified by subramanya sathyanarayana
    Genius9275 points

    You should see a CCS3.3 project file "EMAC07_loopback_debug_R4.pjt" in the subdirectory EMAC_loopback\platform_verif\devices\GLADIATOR\R4\EMAC1\EMAC\EMAC07_loopback_debug". There should be utility in CCS5 to convert this project to CCS5 project.

    Zhaohong

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zhaohong Zhang
    Posted by Zhaohong Zhang
    on May 29 2012 13:57 PM
    Genius9275 points

    Hi, there.

    I am closing this thread because there is no request for more than two weeks.

    Thanks and regards,

    Zhaohong

    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