• 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 » AM1808 NOR direct boot?
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

    AM1808 NOR direct boot?

    This question is answered
    Remony
    Posted by Remony
    on Jul 05 2011 09:36 AM
    Intellectual570 points

    I have some problems booting the AM1808 from NOR flash. I want to excute our code directly NOR flash.

    The code is written to flash at address 0x60000004 (no ais image) and NOR boot configuration word is 0x00000011 at 0x60000000.

    Initialized sections are allocated in flash and uninitialized sections are allocated in ram.

    Linker command file allocate initalized sections in FLASH and uninitialized sections in RAM. 

    And then I compiled and converted .out file to .bin file using hex470.exe.

    Application run in debugger mode, but it don't run in standalone mode.

    Please let me know how to allocate sections. I want documents related NOR direct boot.

    AM18x bootloader (SPRABA5A) is not enough about how to use NOR direct boot.

    Is Running the application from flash possible?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • dabuan
      Posted by dabuan
      on Jul 05 2011 14:42 PM
      Genius14450 points

      Remony,

         Please review this wiki article.

      -Drew 

      _____________________________________________________________________________

      If the response answers your forum question: Please Verify Answer to alert others.

      Are you aware of the TI Processors Wiki?  This is a good place to search for additional support on TI ARM+DSP Application Processors.

       

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on Jul 07 2011 08:39 AM
      Intellectual570 points

      I've already seen wiki article that you mentioned.

      It isn't article I want.

      I don't use ubl and uboot. My application is non-OS program.

      I want  that AM1808 works like MCU such as C2000 or  MSP430.

      Using the AM18xx bootloader (SPRABA5A) mentions below sentence.

      For Direct NOR boot, the bootloader transfers control directly to the secondary bootloader present in NOR Flash by branching to address
      0x60000004. The secondary bootloader is directly executed from there.

      I want program starts at 0x60000004 in flash. 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Jul 08 2011 13:44 PM
      Mastermind27545 points

      1) Can you send the .map generated for your code? All sections should be in NOR, and the entry point should be at 0x60000004

      2) Connect in CCS and make sure you can read correctly from the 0x60000000 in the memory window. Do the config word and data look correct? Sending a snapshot of that would be helpful.

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on Aug 03 2011 03:49 AM
      Intellectual570 points

      Hi, jeff

      I used the bootloader that is included in SitaraWare for direct boot test.

      1. I modified linker command file.  Initialized sections are allocated in Flash and uninitialized sections are allocated in On-chip Ram.

      MEMORY
      {
           NOR_CONFIG : org = 0x60000000 len = 0x00000004 fill = 0x00000011  /* NOR Configuration Word - Direct boot */
           NOR  :              org = 0x60000004 len = 0x01FFFFFC   /* FLASH */
           ONCHIP_RAM : org = 0x80000000 len = 0x00020000        /* RAM */
      }

      SECTIONS
      {
          .init    : {
                             bl_init.obj (.text)
                       } load > 0x60000004

          .text    : load > NOR                                              /* CODE                              */
          .data   : load > NOR
          .bss     : load > ONCHIP_RAM                               /* GLOBAL & STATIC VARS              */
                                              RUN_START(bss_start),
                                              RUN_END(bss_end)
          .const   : load > NOR                                          /* SOFTWARE SYSTEM STACK             */
          .cinit     : load > NOR                                            /* SOFTWARE SYSTEM STACK             */
          .stack   : load > 0x8001E000                            /* SOFTWARE SYSTEM STACK             */
      }

      2.  Compile and convert from .out to .bin file using hex470.exe

           I made a command file (Make.cmd). It similar to ubl2bin.cmd of bootstrap loader in AM1808 SDK.

           And then enter below command in Dos winodws. (run cmd.exe)

           >> hex470 Make.cmd -o output.bin

      boot.out
      -b
      -image
      -zero
      -map output.map

      ROMS
      {
           FLASH:  org = 0x60000000, len = 0x00005000    /* FLASH */
      }

      3.  Writing image (*.bin) and booting.

      Finally, I burned binary image to NOR flash and boot. But board doesn't work.

      I checked boot mode switch and NOR flash data. They are right. NOR configuration word is 0x00000011 at 0x60000000.

      What is wrong?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Aug 08 2011 13:57 PM
      Mastermind27545 points

      The best way to debug would be to connect in CCS, put a breakpoint at 0x60000000, reset the board, and step through your code with the symbols loaded. Have you tried that yet?

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on Aug 10 2011 01:13 AM
      Intellectual570 points

      Hi,

      I tested your debugging method.

      After connecting in CCS, put a breakpoint at 0x60000000, reset CPU (HW) on the board.

      Then arrow in disassembly window points at 0xFFFF0000.

      And then step through disassembly code using F5 (Step Into), so jump at 0xFFFD0000.

      And then enter infinite loop (address is 0xFFFD397C)

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Aug 10 2011 14:00 PM
      Mastermind27545 points

      Interesting. Can you use this debug GEL file and paste the results of the Print_ROM_Info function? That will give some more clues as to the issue.

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on Aug 11 2011 20:30 PM
      Intellectual570 points

      Below message is the information when Print_ROM_Info function is run.

      ARM9_0: GEL Output: ---------------------------------------------
      ARM9_0: GEL Output: |               BOOTROM Info                |
      ARM9_0: GEL Output: ---------------------------------------------
      ARM9_0: GEL Output: ROM ID: d800k006
      ARM9_0: GEL Output: Silicon Revision 2.0
      ARM9_0: GEL Output: Boot Mode: Emulation Debug
      ARM9_0: GEL Output:
      ROM Status Code: 0x00000000
      Description:ARM9_0: GEL Output: No error
      ARM9_0: GEL Output:
      Program Counter (PC) = 0x80005B98

      AM1808 doesn't support NOR direct mode according to Silicon revision?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Aug 12 2011 11:18 AM
      Mastermind27545 points

      Sorry, can boot in NOR direct mode and then connect and run the debug GEL file? You do not need to be in Emulation boot mode in order to connect to the device. Thanks

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on Aug 24 2011 19:43 PM
      Intellectual570 points

      Does AM1808 really support NOR direct boot mode?

      If AM1808 supports it, I want to get some examples or documents.

      Please let me know how to use NOR direct boot mode. 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Aug 25 2011 13:39 PM
      Mastermind27545 points

      See section 3.1.2 of the AM1808 bootloader user guide. The ROM will branch to 0x60000004 and execute directly out of NOR.

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Zafer Coban
      Posted by Zafer Coban
      on Sep 14 2011 04:27 AM
      Prodigy80 points

      Hello Jeff,

      I have similar problems when booting from NOR flash as mentioned http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/47/p/134033/481255.aspx#481255.I try to use AIS Nor Boot. I try to debug as you suggest above and put a breakpoint at 0x80000000, when a reset (HW) microprocessor, the PC goes to 0xFFFF0000, then jumps to 0xFFFD0000. When i step over lines, the debugger circles on local ROM and can't jump to local RAM region. My diagnostic output is like;

      ARM9_0: GEL Output: ---------------------------------------------
      ARM9_0: GEL Output: |               BOOTROM Info                |
      ARM9_0: GEL Output: ---------------------------------------------
      ARM9_0: GEL Output: ROM ID: d800k006
      ARM9_0: GEL Output: Silicon Revision 2.0
      ARM9_0: GEL Output: Boot Mode: NOR
      ARM9_0: GEL Output:
      ROM Status Code: 0x00000000
      Description:ARM9_0: GEL Output: No error
      ARM9_0: GEL Output:
      Program Counter (PC) = 0xFFFD6984

      So, what can be the problem? Thanks,

      Zafer.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jc-ti
      Posted by jc-ti
      on Sep 16 2011 15:43 PM
      Mastermind27545 points

      Based on the PC, it looks like you are in NOR Direct boot. Is that what you intended? If so then it will try to execute out of 0x60000000 address range (NOR flash) directly.

      Jeff

      ----------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

      Useful Links:
      OMAP-L1x/C674x/AM18x Debug GEL File

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prabhakar Lad
      Posted by Prabhakar Lad
      on May 21 2012 07:44 AM
      Genius4675 points

      Hi Remony,

      Did you get this NOR direct boot mode working?

      Thx,

      --Prabhakar Lad

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Remony
      Posted by Remony
      on May 22 2012 09:36 AM
      Verified Answer
      Verified by jc-ti
      Intellectual570 points

      Hi,

      I gave up this issue.

      thanks

      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