• 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) » DaVinci™ Video Processors » DM814x and AM387x Processors Forum » How to boot DM8148/AM387x EVM board using NOR flash?
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

How to boot DM8148/AM387x EVM board using NOR flash?

This question is not answered
Maynard Cabiente
Posted by Maynard Cabiente
on Jul 23 2012 16:14 PM
Prodigy230 points

We have a DM814x/AM387x EVM (TMDXEVM8148) board from Mistral.  The base board is Rev D.  It also has an Expansion I/O board Rev D and LCD Adapter board Rev C.  We are currently using EZSDK 5.04.00.11 release for validating the board.

We want to make use of the NOR flash.  That is, use the NOR flash to boot the board through the provided u-boot and linux in the EZSDK.

I have compiled u-boot for NOR flash booting (using ti8148_evm_config_nor).  Unlike the EZSDK for DM816x board, the EZSDK for DM8148 did not include the norflash-writer.out inside board-support/host-tools.  I looked around the web and I did get Norflash-writer.zip from this site: http://processors.wiki.ti.com/index.php/File:Nor-Flash-Writer.zip.   I did a clean build of norflash-writer project and it did create a binary file for norflash-writer.out.

I am using Code Composer Studio version 5.2.0.00069 with Digital Spectrum XDS100v2 USB emulator to program the flash.  I followed the instructions as stated in http://processors.wiki.ti.com/index.php/DM814x_C6A814x_AM387x_PSP_Flashing_Tools_Guide#Burning_NOR_Flash_.28using_CCS.29.  I am using DM814x_PG2.x.gel GEL file.  It did program u-boot successfully. 

After changing the BTMODE[4:0], I tried booting the board using NOR flash.  The result is not promising.  There are no serial console messages being output by u-boot.  It looks like it is not booting correctly from NOR flash.

There were board modifications that were mentioned in http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_NOR_Support.  However, I thought that this is for the older hardware revisions.  For example, R242 and R229 are not even in the base board schematics and R230 is not in the I/O board.

There is a PCF8575PWR part in the base board that controls EXP_GPMC_ADD_SELn that seems to control which signal will be used (EXP_GPMC_A22 & EXP_GPMC_A23 or CE_REMOTE_IN & HDMI_HP_IN).  Unfortunately, I don’t know how EXP_GPMC_ADD_SELn can be controller at the moment.  I thought that either the hardware switch SW8 or some code in u-boot will deal with this.  But, there is no documentation about this.

Can somebody please help us in determining what we need to boot from NOR flash successfully? 

Are there board modifications that are required in our case?  

What is the catalog board that they mentioned in http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_NOR_Support?

Thanks,
Maynard 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Biser Gatchev-XID
    Posted by Biser Gatchev-XID
    on Jul 24 2012 01:29 AM
    Mastermind28205 points

    Hi Maynard,

    If you look at the Mistral main board schematics, there is a SW2 on page 14, which is for NAND/SPI boot. Probably the switch SW2 (1-4) that pulls the NAND_ BOOTn signal low should be turned off.  This will disable GPMC_nCS0 going to the NAND (page 14) and redirect it to the expansion board, where the NOR flash is located (pages 13 and 15).

    Best Regards
    Biser

    Best Regards
    Biser

    Note:  If this answer solves your question please mark post as "Answered"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Marc DAmato
    Posted by Marc DAmato
    on Jul 24 2012 05:00 AM
    Expert7760 points

    Will the NOR Flash Writer source from DM816x work as-is, just rebuilt on the DDM814x?  Please verify.

    Our wiki page: http://processors.wiki.ti.com/index.php/DM814x_C6A814x_AM387x_PSP_Flashing_Tools_Guide#Building_NOR_Flash_Tool, is for DM814x but the source for NOR writer is with the DM816x PSP?

    Thanks.

    DM814x/AM387x NOR Writer
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Marc DAmato
    Posted by Marc DAmato
    on Jul 24 2012 05:14 AM
    Expert7760 points

    Maynard,

    WRT board mods. 
    1. what EVM version do you have?  I'll make sure you have proper schematics.  Unless you already have them.
    2. R230 on the catalog board, needs to be inserted for NOR to work.  You have to short the lines where its to be inserted.
    3. Let us know if SW2 works.

    ===================================================================

    There were board modifications that were mentioned in http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_NOR_Support.  However, I thought that this is for the older hardware revisions.  For example, R242 and R229 are not even in the base board schematics and R230 is not in the I/O board.

    There is a PCF8575PWR part in the base board that controls EXP_GPMC_ADD_SELn that seems to control which signal will be used (EXP_GPMC_A22 & EXP_GPMC_A23 or CE_REMOTE_IN & HDMI_HP_IN).  Unfortunately, I don’t know how EXP_GPMC_ADD_SELn can be controller at the moment.  I thought that either the hardware switch SW8 or some code in u-boot will deal with this.  But, there is no documentation about this.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Maynard Cabiente
    Posted by Maynard Cabiente
    on Jul 24 2012 08:22 AM
    Prodigy230 points

    Hi Biser and Marc,

    Thanks for the suggestions.  Unfortunately, both switches in SW2 are already in the off (0) position.  So this does not fix the problem.

    Once again the hardware versions are:

    Base board - Rev D
    Expansion I/O board - Rev D
    LCD Adapter board - Rev C

    In regards to R230 on the catalog board, I can only find this on the Expansion I/O board Rev C.  We have a Rev D board and this is not part of the schematics.

    Is there any other things I should look into so that we can boot from NOR flash?

    Regards,
    Maynard
     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Biser Gatchev-XID
    Posted by Biser Gatchev-XID
    on Jul 24 2012 09:10 AM
    Mastermind28205 points

    EXP_GPMC_ADD_SELn  should be controlled by programming the PCF8575PWR via I2C0. You should check its default output states and how that affects U88 via the EXP_GPMC_ADD_SELn  signal. Besides that, check carefully the boot mode switches S1 and SW13. The boot modes are explained in the DM and TRM. The configuration must match the NOR flash on the exp. board.

    BR
    Biser

    Best Regards
    Biser

    Note:  If this answer solves your question please mark post as "Answered"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Maynard Cabiente
    Posted by Maynard Cabiente
    on Jul 24 2012 09:25 AM
    Prodigy230 points

    Hi Biser,

    I actually got it u-boot to work now from NOR flash.  I missed S1[8] configuration.  After setting this to 1, the board booted up from NOR flash.  My mistake.  Thanks for your help.

    I will try to put the kernel and jffs2 file system to see if there will be other issues like making sure GPMC_A22/A23 is configured correctly to access NOR flash.

    Would you happen to know if there is support in u-boot or kernel for accessing the PCF8575PWR to make sure that GPMC_A22/A23 is setup correctly?

    Regards,
    Maynard
     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Biser Gatchev-XID
    Posted by Biser Gatchev-XID
    on Jul 24 2012 09:31 AM
    Mastermind28205 points

    That's great Maynard. I don't know about PCF8575PWR support in Linux, I only work on hardware problems.

    BR
    Biser
    Best Regards
    Biser

    Note:  If this answer solves your question please mark post as "Answered"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dennis McLeod
    Posted by Dennis McLeod
    on Jul 27 2012 11:53 AM
    Intellectual670 points

    Maynard,

    I'm curious what NOR flash you're referring to. I have the same 8148EVM, though mine is a REV-C baseboard, REV-C io-expansion board, and REV-C LCD board.  Does the REV-D of the baseboard have NOR flash and REV-C didn't?  Or are you using that SPI flash hanging off SPI-0? Our design will use NOR exclusively and I would love to be able to work through some of these hurdles before we get our first prototype back from fab.

    Thank you!

    Dennis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Maynard Cabiente
    Posted by Maynard Cabiente
    on Jul 27 2012 13:51 PM
    Prodigy230 points

    Hi Dennis,

    The NOR flash is in the I/O Expansion board and not in the Base Board.  Since you have an older revision of the base board and I/O board, you will definitely need to do some hardware modifications to access the NOR flash.  Here is the portion of the instructions that you need.  You can see it here too: http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#U-Boot_NOR_Support

    Board Modification

    Following board modifications have to be done in the Catalogue board (CATA_x) / Base Board for NOR  to work.

    1. catalog board: Replace the resistor R230 in the  with 0-ohm        

           This is required for NOR XIP (Execute in place) to work.

         NOTE:
         Without the above board modifcation(1), NOR boot will not work.

    2. DM8148 Base board: Remove the resistors R410, R248 and populate R242,R229(Both values are 22 ohms)

          This is required to access the entire NOR memory. NOR address lines (A22 and A23)  and HDMI lines are shared.

       a) Populating the resistors R410, R248 (Both are 22 ohms) will enable HDMI

       b) Populating the resistors R242, R229 (Both are 22 ohms) will enable NOR

          By default, resistors R410, R248 are populated and HDMI is enabled. This puts limitation on the size of NOR memory that can be accessed. With HDMI enabled, NOR device lines A22 and A23 cannot be used and hence the maximum addressible memory is 2^22  = 4 MB. Hence, if the entire NOR memory has to be accessed, then the above modification (2) has to be done.
         NOTE: HDMI will not work after this modifcation(2).
     

     Good luck!

    -Maynard
     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • YILMAZ KIRÇİÇEK
    Posted by YILMAZ KIRÇİÇEK
    on Sep 24 2012 04:51 AM
    Intellectual765 points

    Hi Maynard,

    I thing only A0 to A19 can be used during XIP boot on Mistral board. Because designer has been selected MUX1 for these signals. But A20 to A23 comes from Mux0 option pins. So after boot user can modify relevant PINCNTL registers on bootlader or kerneland to access entire NOR flash. 

    Best regards.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • can chen
    Posted by can chen
    on Nov 08 2012 02:55 AM
    Intellectual350 points

    Hi, Maynard

       can you send me DM814x_PG2.x.gel file. I look for this file for long time,but I can not get it from Internet. The email is 78329668@qq.com

     

    Thanks

    Can

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Maynard Cabiente
    Posted by Maynard Cabiente
    on Nov 13 2012 09:34 AM
    Prodigy230 points

    Hi Can,

    Attached is the DM814x_PG2.x.gel file that I'm using.

    7103.DM814x_PG2.x.gel


    Hope this helps.

    -Maynard
     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • can chen
    Posted by can chen
    on Nov 14 2012 05:54 AM
    Intellectual350 points

    Hi Maynard,

           Thanks for your help

    bests

    Can

     

    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