• 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 » OMAP-L138 Booting from SPI ATMEL
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
  • Forums

    OMAP-L138 Booting from SPI ATMEL

    This question is answered
    raneliya
    Posted by raneliya
    on May 26 2011 08:08 AM
    Genius5270 points
    Hello, I am using a custom board with OMAP-L138 And SPI flash of ATMEL AT45DB321D. I flashed the SPI using CCS4 with spi-flash-writer( I had to add support for ATMEL since the spi-flash-writer 3.20.00.XX does not include support for atmel). Anyway, I get that the application succeed in reading with the text "File Match". I flashed first arm-spi-ais.bin - "armais" file, but after reseting in mode booting from SPI1 flash (0x0C in boot configuration register), I get no printing at all in UART. I tried to change page size from 528 to 512, and flashed again the armais file but still nothing... Can it be that OMAP cannot boot from ATMEL, or is there anything else wrong in my configuration ? I thank you for your help, Ran Shalit
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • raneliya
      Posted by raneliya
      on Apr 13 2012 04:27 AM
      Genius5270 points

      Hi jimmy,

      - I don't have now access to the code, maybe tomorrow, but it was very simple: I just took the atmel driver from u-boot (or linux I'm not sure, but probably from u-boot source).
      I also did some very minor changes just to fit into the frame of the spi-flash-writer (not any important change). You should also be aware of the 512/528 bytes issue. When I first tried to flash the Atmel flash it seemed that flashing was done well, but the booting failed. I then figured out that it is becuase the flash came as 528 bytes per page from factory. 

      - I added simple command at start of flash to convert it to 512 bytes per page. That is maybe the only "important" adding to code, I have made. If your flash is 512bytes then you won't need such anyway.

      - Are you working with the updated sdk from TI ? Isn't there still support for the atmel in the spi-flash-writer ? 

      Bye,

      Ran

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jimmy zhang77361
      Posted by jimmy zhang77361
      on Apr 18 2012 19:14 PM
      Prodigy115 points

      Hi Ran:

      We have solved the problems and now we can programme AT45DB321D and boot from it. The following is what I have done:

      1. Configure the page size of AT45DB321D-SU to 512 bytes; then did a power cycle;

      2. Modified spi-falsh-writer to support AT45DB321D.

      Thank you very much for your help!

       

      Best regards,

      Jimmy

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alexander Buraga
      Posted by Alexander Buraga
      on Mar 14 2013 06:06 AM
      Prodigy75 points

      Mr. Zhang, could you give modified version of spi-falsh-writer (with support of AT45DB321D)?

      My e-mail: dtp-avb@yandex.ru

      ---

      Thanks at advance.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jimmy zhang77361
      Posted by jimmy zhang77361
      on Mar 14 2013 07:19 AM
      Prodigy115 points

      8357.dsp_spi_flash_writer.zipHi Alexander:

       

      1. Configure the page size of AT45DB321D to 512 bytes. The default page size is 528 bytes. You need to configure the page size to 512 bytes. I added the following code in “main.c” of SPI Flash Writer. You need to uncomment the following code in “main.c” the first time.

       

          /*The follow code is to config the page size of AT45DB321D to 512 Byte.*/

      //    Uint8 config_cmd[4] = { 0x3d, 0x2a, 0x80, 0xa6 };

      //    ret = spi_xfer(slave, 32, &config_cmd[0], NULL, SPI_XFER_BEGIN);

      //    if (ret) {

      //          printf("SF: Failed to send config command %02x: %d\n", config_cmd, ret);

      //          return ret;

      //    }   

      //    while(1);    //Added by Jimmy

       

      1. After you build and run the “main.c”, you need to power off the board, then power on the board. Now the page size of AT45DB321D is 512 bytes.
      2. Comment the above code.
      3. Build and run SPI Flash Writer. The you can program the AT45DB321D following the instructions.

       

      The attachment is the modified driver.  

       Please let me know if the code works.

      Best regards,

      Jimmy

      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