• 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 » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » NAND Flash and Dual MII interface on AM335x
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

NAND Flash and Dual MII interface on AM335x

This question is not answered
Peter Reibrt Hansen
Posted by Peter Reibrt Hansen
on Dec 21 2011 02:41 AM
Prodigy50 points

I'm working on a design, with the ARM uP AM335x ZCZ package where I would like to implement two Ethernet ports with MII(GMII) interface or RMII interface, and also NAND flash. I can see that I will get a pinconflict on pin U17, which shall be used for RXERR for the second PHY and as WP for the NAND Flash. Can you advise, how this can be solved?

Kind Regards Peter

AM335x AM335x pinmux RGMII McASP NAND
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • AnBer
    Posted by AnBer
    on Dec 21 2011 09:12 AM
    Genius9615 points

    Peter,

    - I guess that you are using the PINMUX utility (PINMUXTOOL) to find out what pin multiplexing options are possible:
     
    http://www.ti.com/product/am3356

    It seems that you are correct. For U17 pin the GPMC WP signal for NAND and the GMII2 RXERR signal are conflicting. I am double checking (you will get some comment on the E2E) on this but I think there are not much ways to workarround this.
    Still WP seems to be used to make the NAND permanently writable so it might not be a key function. You could use a GPIO instead if it is truly needed.
    For example on AM18xx we did not have this pin on the EMIF/GPMC and we advised to use a GPIO and some SW to implement this.

    - There are some consideration to take into account for NAND, especially if you want to boot from NAND.

    The following page will give some useful information. It relates to older AM3xxx devices but most of it applies to AM335x devices:
    http://processors.wiki.ti.com/index.php/Raw_NAND_ECC
    NAND device can become end of life quite quickly and it can be difficult to find a compatible replacement (one of the reason being the evolution in the ECC support over time). OneNAND and managed NAND do have built in ECC so you do not suffer of this ECC compatibility problem.  Still note that on AM335x the ECC support improved compared to previous AM3xxx generation.

    Note as well that for NAND boot some assumptions are made (like device ID, page organization, ..etc) so make sure to double check section 26.1.7.2.5 of the AM335x TRM - SPRUH73B.

    Hope it helps.

    Anthony

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mark Norman
    Posted by Mark Norman
    on May 01 2012 04:49 AM
    Prodigy225 points

    Hi Anthony,

    Can you confirm if there is any way around the conflicts on T17 (GPMC_WAIT0/GMMI2_CRS) and U17 (GPMC_WPN/GMII2_RXER) to enable NAND Flash and GMII2 to be used at the same time (ZCZ package)?

    We are planning to use GMMI2 as a EtherCat Master interface which will not require GMMI2_CRS.  Is it safe to allocate T17 to be GPMC_WAIT0 without affecting the functionality of the GMII2 peripheral (if CRS is not required)?

    Also, as you mentioned in the earlier post, GPMC_WPN could be controlled by a separate GPIO and U17 assigned to GMII2_RXER.  Could you see any issues with this?  and in particular when booting from NAND flash?

    Kind Regards

    Mark Norman

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peaves
    Posted by peaves
    on May 01 2012 08:18 AM
    Genius12795 points

    The AM335x Silicon Errata provides a description of the GPMC_WAIT0 pin multiplexing limitation and an example hardware workaround.  This solution could also be used for the GPMC_WPN signal.

    The hardware workaround example described in the AM335x Silicon Errata assumes the NAND WAIT input is only used while AM335x is booted from NAND.  If the NAND WAIT input is required after AM335x is booted, the hardware workaround may need to be expanded to include a connection to the GPMC_WAIT1 signal after AM335x is booted.

    Regards,
    Paul

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mark Norman
    Posted by Mark Norman
    on May 01 2012 17:13 PM
    Prodigy225 points

    Hi Paul,

    Thank you for your response and link to the Silicon errata.

    Currently we are looking to use NAND and GMII2 at the same time making the multiplexing option a bit tricky.  We are only planning to use the GMII2 as an EtherCat Master interface which does not require CRS (presumably because it only operates in full duplex mode).  The technical reference manual (spruh73d) specifies that GMII2_CRS should be held low in full duplex operation.  Would it be safe to set the T17 MUX to be GPMC_WAIT0?  What impact would this have on the GMII2 module and how it interprets the value of GMII2_CRS?

    Kind Regards

    Mark Norman

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peaves
    Posted by peaves
    on May 01 2012 23:15 PM
    Genius12795 points

    The pin multiplexing logic will source a low logic level to the internal CRS signal when the IO associated with terminal T17 is not configured for pin multiplexing mode 1.  Therefore, the Mac will always see a low logic level on the CRS input if you select pin multiplexing mode 0.

    The IEEE Standard 802.3 defines the following requirements for CRS.

     

    22.2.2.9 CRS (carrier sense)

    CRS shall be asserted by the PHY when either the transmit or receive medium is nonidle. CRS shall be deasserted by the PHY when both the transmit and receive media are idle. The PHY shall ensure that CRS remains asserted throughout the duration of a collision condition.

    CRS is not required to transition synchronously with respect to either the TX_CLK or the RX_CLK.

    The behavior of the CRS signal is unspecified when the duplex mode bit 0.8 in the control register is set to a logic one, as described in 22.2.4.1.8, or when the Auto-Negotiation process selects a full duplex mode of operation.

     

    The MAC may ignore the state of CRS when configured to full-duplex based on this definition of CRS.  However, I would like to confirm this with the MAC designer.  This may take a few days to get an answer, but will reply to this post as soon as I get an answer.

    Regards,
    Paul

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peaves
    Posted by peaves
    on May 02 2012 09:10 AM
    Genius12795 points

    The MAC designer has confirmed the state of the CRS input is ignored in full-duplex mode. 

    Regards,
    Paul

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mark Norman
    Posted by Mark Norman
    on May 02 2012 19:09 PM
    Prodigy225 points

    Hi Paul,

    Thanks for following this up.

    Regards

    Mark

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • wu qch
    Posted by wu qch
    on May 02 2012 19:53 PM
    Prodigy10 points

    if i want to use two ethernet and boot from the NANDFLASH,can the PRU_MII0 and PRU_MII1 be used as the ICE board designed? by the way,what is the difference between the PRU_MII and the GEMAC_CPSW/MII?

    thanks!

    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