• 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 » hex6x/tiobj2bin-entry point query
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
  • hex6x/tiobj2bin-entry point query

    hex6x/tiobj2bin-entry point query

    This question is answered
    Rajarama M Bhat
    Posted by Rajarama M Bhat
    on Jul 31 2012 01:16 AM
    Intellectual530 points

    Hi,

    We are using only dsp inside TMS320DA828 ,which has both ARM and dsp.Flash is connected to SPI1. We have a modified bootloader(modified DSP UBL) for DSP ,which does the booting only for DSP. Primary bootloader D800K005 copies DSP-UBL to shared RAM(L2) in a proper fashion. We also have burned application in flat binary image format inside flash. Application is a simple program which sets two GPIO pins. Here we are able to generate a map file using hex6x utility(tiobj2bin.bat) while generating the flat binary image. We are under the impression that if we load the flat binary image as it is, from the flash, we will be able to execute the application. There is only one .text and .cinit section in the application. We are giving .text starting address as the entry point of the application. DSP-UBL branches out to this entry point. We are using tiobj2bin with hex6x in following command:
    %hexcmd% -map=test.map -b -image -o %binfile% %hextmp% %outfile%

    The questions:
    1)Is the approach correct?
    2)If not is there a way to generate detailed map file of flat binary image (we are using -map=mapfilename.map in hex6x)?
    3)What should be the entry point when we consider flat binary image?(we know that _c_int00 is the entry point for elf and coff images,but the coff&elf images are converted to flat binary image here,so is it possible for us to use the same entry point? ). Also,flat binary image's size is very less compared to elf image.
    4)Does the flat binary image (in flash mode) do all the steps performed by debugger during debugging mode?

    Thanks,

    Rajaram

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Rahul Prabhu
      Posted by Rahul Prabhu
      on Jul 31 2012 17:47 PM
      Verified Answer
      Verified by Rajarama M Bhat
      Genius15575 points

      Hi Rajaram,

      The procedure to boot DA828 should be same as the procedure described here:

      http://processors.wiki.ti.com/index.php/Boot_Images_for_OMAP-L137

      You do not need to convert your application to flat binary image, instead you should pass it as the second input to AISGen tool on command line.By this way you will have one monolithic boot image with the the application being loaded in memory during ROM boot. Your bootloader DSP UBL can then jump to appropriate entry point (_cint00) in the application image.

      Regards,

      Rahul

      ---------------------------------------------------------------------------------
      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.
    • Rajarama M Bhat
      Posted by Rajarama M Bhat
      on Aug 01 2012 03:41 AM
      Verified Answer
      Verified by Rahul Prabhu
      Intellectual530 points

      hi Rahul,

      Thank you for the information.

      Primary bootloader d800k005 loads DSP-UBL to shared RAM ,right? Our image is larger than the RAM size. So it is difficult for us to have one monolithic image.Is it possible for us to make primary bootloader to load one monolithic bootable image to SDRAM alone (or shared RAM for dsp-ubl &SDRAM for application)?

      We have made it to work with flat binary image and entry point is _c_int00. We are loading the flat binary image to to starting location in .map file created from hex6x(though the addresses same as .map from ccs compilation, .map file from hex6x directly gives only the relevant section)

      Thanks,

      Rajaram

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rahul Prabhu
      Posted by Rahul Prabhu
      on Aug 01 2012 11:45 AM
      Verified Answer
      Verified by Rajarama M Bhat
      Genius15575 points

      Rajaram,

      The primary bootloader will load the binaries based on the section specification in the out files. Essentially you provide the linker command file when you build the binary so you can use the RAM  memory to load the DSP UBL while use the SDRAM for the Application and the primary bootloader should be able to place them in the right memory during boot.

      Good to know that you were able to make it work with the flat binary image as well.

      Regards,

      Rahul

      ---------------------------------------------------------------------------------
      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.
    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