• 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 » Is AISgen putting xdc.meta data into the target image?
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
  • Is AISgen putting xdc.meta data into the target image?

    Is AISgen putting xdc.meta data into the target image?

    This question is answered
    Frank
    Posted by Frank
    on Jan 19 2012 09:48 AM
    Intellectual875 points

    Hello,

    I had opened a ticked under the following link:

    http://e2e.ti.com/support/embedded/bios/f/355/t/158999.aspx

    Alan stated to file a ticket for AISgen, detailed information can be found under that link.

    It seems that AISgen is putting xdc.meta data into the target image.

    What needs to be done to avoid this?

    Thanks,
    Frank

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Daniel Allred
      Posted by Daniel Allred
      on Jan 20 2012 13:06 PM
      Genius15085 points

      Only loadable sections (that is sections that contain code or data that should exist in the target memory map) should be output by the AISGen tool.  Can you share the object file and map file? Then we should be able to test it out with the latest version of the tool and see what we get.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Frank
      Posted by Frank
      on Jan 23 2012 10:13 AM
      Intellectual875 points

      Daniel,

      I tried to upload (via Insert file) the files, but alway got "File Type Not Valid".
      Let me know how to share these files.

      Thanks,
      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Jan 23 2012 22:05 PM
      Genius15085 points

      Best option is to create a zip file (standard zip compression with a .zip extension).  That should let it upload.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Frank
      Posted by Frank
      on Jan 24 2012 02:10 AM
      Intellectual875 points

      Daniel,

      the uploaded TI.zip contains 4 files:

      ARM9_OMAPL138.out and ARM9_OMAPL138.map, these were extracted from my workspace.
      I snipped off a lot of code, so that files are not so big, meta data are still in the generated h file.
      My configuration still contain the following 3 lines:
      Program.sectMap["xdc.meta"] = new Program.SectionSpec();
      Program.sectMap["xdc.meta"].loadSegment = "META";
      Program.sectMap["xdc.meta"].type = "COPY";

      OMAP-L138_AISgen_meta_data.cfg, this one I'm loading into "AISgen for D800K008 Bootloader Version 1.9" to generate the h file.
      AISgen was donloaded from the following link:
      http://www.ti.com/dsp/docs/litabsmultiplefilelist.tsp?sectionId=3&tabId=409&literatureNumber=sprab41d&docCategoryId=1&familyId=1621

      arm_with_config_for_meta.h is the h file generated via AISgen.

      Have a look at line 1479 you'll see the section load command followed by the address for the meta data (0xC0002100).

      Some observations:
      The Size is 0x00000114 (line 1481 in the h file, whereas the map file shows a length of 00000112 (line 119 in the map file).
      Any ideas why?
      If it would be zero padding then I expect that zeros are filled at the section end. But it isn't so.

      Thanks,
      Frank

      1731.TI.zip

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Frank
      Posted by Frank
      on Jan 30 2012 01:52 AM
      Intellectual875 points

      Daniel,

      were you able to test it with your latest version of the tool and what is the result?

      Thanks,

      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Jan 30 2012 11:49 AM
      Genius15085 points

      Frank,

      I was able to dig into this and determined that there was indeed a bug in handling ELF files.  When a object file section did not fall into an actual ELF program segment we were not correctly marking that section as not loadable.  I've fixed the code and checked it against the .out file you provided.  When we make a new release based on that code, I'll post here.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Daniel Allred
      Posted by Daniel Allred
      on Jan 30 2012 12:48 PM
      Genius15085 points

      Now that I think about (re-reading the original thread that you posted in), can you provide a copy of the .out without the xdc.meta section moved to a non-overlapping memory region.  When overlapping, the fix I did probably won't work, so I'll need to check that. If it doesn't work, I'll need to figure out how those COPY sections are marked and handle that accordingly.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Frank
      Posted by Frank
      on Jan 31 2012 02:52 AM
      Intellectual875 points

      Daniel,

      the uploaded TI_without_config_for_meta.zip contains 3 files:

      ARM9_OMAPL138.out and ARM9_OMAPL138.map, these were extracted from my workspace.
      The only difference to my previous upload is, that I removed the following 3 lines out of the configuration:
      Program.sectMap["xdc.meta"] = new Program.SectionSpec();
      Program.sectMap["xdc.meta"].loadSegment = "META";
      Program.sectMap["xdc.meta"].type = "COPY";

      Whole memory "META" is now unused.

      arm_without_config_for_meta.h is the h file generated via AISgen.
      No change to the OMAP-L138_AISgen_meta_data.cfg from my last upload (TI.zip).

      Have a look at line 1492 you'll see the section load command followed by the address for the meta data (0xC0006300), size is still 0x00000114 bytes.

      You stated, that the bug is "in handling ELF files".
      Does this mean AISgen is working proper for COFF files?

      Thanks,
      Frank

      2158.TI_without_config_for_meta.zip

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Frank
      Posted by Frank
      on Feb 13 2012 10:18 AM
      Intellectual875 points

      Daniel,

      what do you think how long it will last until a new version of AISgen is officially relesed?

      Thanks,
      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Frank
      Posted by Frank
      on Mar 05 2012 06:11 AM
      Intellectual875 points

      Daniel,

      any news from your side?

      Thanks,
      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 12 2012 14:05 PM
      Genius15085 points

      Frank,

      A new release is available here.  Based on the test files you provided, I believe this should fix the problem with parsing XDC-based ELF files.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Frank
      Posted by Frank
      on Apr 13 2012 02:43 AM
      Intellectual875 points

      Daniel,

      your link is pointing to Flash and Boot utilities ( OMAP-L138_FlashAndBootUtils_2_40.tar.gz) which we are NOT using.

      As I already mentioned earlier in this thread, we are using AISgen and it was donloaded from the following link:
      http://www.ti.com/dsp/docs/litabsmultiplefilelist.tsp?sectionId=3&tabId=409&literatureNumber=sprab41d&docCategoryId=1&familyId=1621

      Just checked the link, but there are still the old versions.
      Is there also a fix for AISgen available?

      Thanks,
      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 13 2012 11:29 AM
      Genius15085 points
      AISgen_d800k008.zip

      Ah, sorry for the confusion.  I'll try attaching a version here.  It takes somewhat longer to get things posted on the documentation site. 

      Let me know if this doesn't work (if you can't get the file from this post).

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      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.
    • Frank
      Posted by Frank
      on Apr 16 2012 03:42 AM
      Intellectual875 points

      Daniel,

      it is working.

      I applied your new AISgen_d800k008 on both out files which I uploaded on this thread.
      The section load and the corresponding validate CRC AIS commands were no longer contained in the generated h files.

      One final question:
      Is my understanding correct that your fix is only needed for ELF files, i.e. for COFF files the previous AISgen is already OK?

      Thanks,
      Frank

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 16 2012 11:00 AM
      Genius15085 points

      Frank
      Is my understanding correct that your fix is only needed for ELF files, i.e. for COFF files the previous AISgen is already OK?

      Frank,

      Yes, this is this our belief.  We haven't made any changes to the COFF parsing code and are not aware of any reported bugs for COFF file handling.

      Regards, Daniel

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