• 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) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » C6745 Boot on Nand on emifa
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • C6745 Boot on Nand on emifa

    C6745 Boot on Nand on emifa

    This question is not answered
    Luigi12181
    Posted by Luigi12181
    on May 25 2009 22:05 PM
    Prodigy85 points

    Hi,

    I'm trying to boot a C6745 on a nand flash MT29F2G08 connected on CS3 of EMIFA.

    My boot pins are ok, and when the DSP boots, I see the CS3 trigger on the board, and I haved succeed to program/read/erase the flash device with my own code.

    I haved try to generate the code with AIS, and to program the flash like indicated on the D800K001 specs, but the device doesn't boot, and the ram contains garbage.

     

    My code in Flash contains the AIS script wich start at 0x20000 (Block 1) and each page of 2048 bytes contains a part of the code and the 64 spares bytes are at value 0xFF.

    Does someone have an idea of what I have done wrong?

    Thank you!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Devin
      Posted by Devin
      on May 26 2009 12:20 PM
      Intellectual1915 points

      Hi,

      Were you getting the same behavior when executing your code via the emulator?

      If not, it could be that the AIS file is not performing all system configurations which are handled by the GEL file during development. The following wiki article ( http://www.tiexpressdsp.com/index.php?title=Flashing_the_C6747 ) discusses modifications made to the PSP examples to include the configurations, generating the ais image, and flashing the C6747.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TimHarron
      Posted by TimHarron
      on May 26 2009 16:51 PM
      Genius16720 points

      You may also want to make sure that the boot pins are driven to proper levels for your boot mode as discussed in this thread. If not properly driven you could be in a different boot mode which would explain the behavior you are seeing.

      -Tim

      ---------------------------------------------------------------------------------------------------------
      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.
    • Luigi12181
      Posted by Luigi12181
      on May 26 2009 21:33 PM
      Prodigy85 points

      Hi Devin,

       

      Thank you for this information, I haved try to boot directly from the emulator, and the problem is the same, the bootcfg register is good, and represent the Nand 8 boot, but the ram still got garbage!

      The wiki article you sent me help me a little bit, but it is for booting on a spi nand, and actually i'm on a Nand 8 flash device, so the systems configurations is good to know exactly how to perform that, but in my case, the bootloader doesn't even run my code, because it doesn't still succeed to load my code in ram!

      In the AIS generator, I can add CRC calculation in the AIS file, but do I furthermore have to program the CRC(in spares bytes) for each page of 2048 bytes in the flash device??

      anyone have an idea about my problem?

      thank you!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Jul 05 2009 23:32 PM
      Intellectual495 points

      hi there:

       

      I can't help, but I can tell you I am getting the exact same behaviour from a 6747 on our board (same NAND set up, etc). I have used the AIS generator, and have even rewritten the NAND libraries (and written custom code) to burn the data to the NAND as specified for the bootloader. According to the doc the spare bytes must have 16 bytes per 512 byte section, with 6 bytes of 0xff and 10 bytes of ECC, but it DOES NOT specify what kind of ECC. I have tried the ECC codes from the NAND ECC modules on the chip itself. I have read and verified the data on the NAND. I have verified location.

       

      No luck. Calling TI tomorrow. Will post if I figure it out. Did you get yours working?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Jul 06 2009 23:12 PM
      Intellectual495 points

      I got help from TI support (thank you). They provided sample code to write to NAND and now my 6747 device boots! The only differences are in the ECC calculation for the 10 bytes and the fact that it protects the NAND blocks when done. I am not sure which (or both) are needed, but if you still have issues contact me via e-mail and I'll relay the sample code they sent.

      It is strange that the NAND drivers provided with the 6747 do not seem to write the same ECC codes as the sample code!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • hupu adu
      Posted by hupu adu
      on Sep 20 2009 02:50 AM
      Prodigy120 points

      hi,can you send the sample code to me.i have trouble on boot from nand8.

      my email is:    aduhupu@hotmail.com

      thanks.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Sep 22 2009 11:30 AM
      Intellectual495 points

      I am waiting for get an OK from the TI rep to release the code I was given (although it is supposed to become part of the SDK). Anyone from TI here can comment on whether if there is any problem if I relay the code snippet that burns the flash properly for 674x? 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TimHarron
      Posted by TimHarron
      on Sep 22 2009 11:45 AM
      Genius16720 points

      Edmund,

      Did the code come with a click-wrap or some sort of license? Presumably this should not be an issue unless you were given it under NDA or with explicit instructions not to distribute (keeping in mind that I am not a legal authority).

      -Tim

      ---------------------------------------------------------------------------------------------------------
      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.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Sep 22 2009 11:53 AM
      Intellectual495 points

      The 6747 "DSK" code (which is really for the OMAP-137) was missing any sample code for NAND flash burning of the AIS. I read the documentation, followed all steps, and device still wouldn't boot. I contacted TI support and was given a code snippet that was not yet released to burn the NAND from AIS file and it works.

      So I am not sure, is there an implicit NDA or do not distribute? All it is is your basic NAND flash handler and code to calculate and burn the checksums into the spare area.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • hupu adu
      Posted by hupu adu
      on Sep 23 2009 06:21 AM
      Prodigy120 points

      omap-L137 PSP have a sample code( nand_writer).i can use it flash armubl、dspubl and uboot. But i can't boot form nand too. i have use oscilloscope to catch.I find cpu read the nand when boot,may be there have ecc errors.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • hupu adu
      Posted by hupu adu
      on Sep 23 2009 09:14 AM
      Prodigy120 points

      i have a smaple code from omapl137 sdk. i can send it to you.can you help me check it?May i have you email?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Sep 23 2009 10:55 AM
      Intellectual495 points

      I also tried to use that sample code and it does not work. I had to make a bunch of modifications and it still did not work. Someone from TI may be posting the sample code here shortly.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • liang lee
      Posted by liang lee
      on Sep 24 2009 03:57 AM
      Prodigy50 points

      Hi Edmund,

      I am a beginner with omapl-137, I can't boot from nand 8. Can you send the sample code to me?

      email: sonic_ll@sina.com

      thank you!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • hupu adu
      Posted by hupu adu
      on Sep 24 2009 06:48 AM
      Prodigy120 points

      Any Ti employee can solve this question?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Edmund Pirali
      Posted by Edmund Pirali
      on Sep 24 2009 11:19 AM
      Intellectual495 points

      I have sent another request to TI contact to release code or give me permission to do so. Sorry everyone, hang in there!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    12
    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