• 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 » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » Intel-Hex file missing pointers in interrupt vector table
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Intel-Hex file missing pointers in interrupt vector table

Intel-Hex file missing pointers in interrupt vector table

This question is answered
GLEN PANKEY
Posted by GLEN PANKEY
on Apr 06 2012 14:25 PM
Prodigy40 points

I'm trying to use the post build step to create an Intel Hex file.  I'm linking my program's start address at 0x1000 to allow use with a boot loader.  It seems to work except the output appears to be missing the pointer in the interrupt vector table.  To create the intel hex output I used the "Create flash image: Intel-HEX" in the Post Build Step.  The start of my file is as below.

:201000000020000000000000000000000000000000000000000000000000000000000000B0
:20104000000000000000000000000000000000000000000000000000000000000000000090
:20108000000000000000000000000000000000000000000000000000000000000000000050
:2010C000000000000000000000000000000000000000000000000000000000000000000010
:0E1100000000000000000000000000000000E1
:20111C00ADF101930220011000006FF302900000029900EB039040F206F00698A0B9010021
:20115C000BD100000520F0F90220ECF94DE105F00220069801289180010037D180684FEA3B
To me the vector table appears to be there but all the pointers are 0.

If I select "Create flash image: TI-TXT" the output seems to contain the correct table at the beginning.
@1000
08 14 00 20 99 85 00 00 EB 42 00 00 1B 2B 00 00 
8F 41 00 00 8F 41 00 00 8F 41 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 8F 41 00 00
8F 41 00 00 00 00 00 00 8F 41 00 00 5D 66 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 E9 79 00 00
8F 41 00 00 FD 5F 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 C3 84 00 00 CD 84 00 00
D7 84 00 00 E1 84 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 8F 41 00 00
8F 41 00 00 8F 41 00 00 8F 41 00 00 8F 41 00 00

Anybody else run into this?
Oh yeah I'm using CCS4 and my project is on the Stellaris ARM processor.
Thanks in advance.
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • AartiG
    Posted by AartiG
    on Apr 09 2012 10:29 AM
    Guru70585 points

    Glen,

    Would you be able to provide us with your .out file so we can try to reproduce this? If so, please attach it to this thread or if you prefer you can send it to us via private conversation. Also please let us know what the full command line is for both the conversion to Intel hex and to TI-TXT so we can make sure to use the same options.


    If a post answers your question please mark it with the "Verify Answer" button

    Search the wikis for common questions: CGT, BIOS,  CCSv3, CCSv4
    Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GLEN PANKEY
    Posted by GLEN PANKEY
    on Apr 09 2012 10:42 AM
    Prodigy40 points

    The site didn't seem to allow ".out" files so it is in the attached zip file.

    I used the predefined steps.

    The command to produce the TI-TXT output.

    "${CG_TOOL_ROOT}/bin/hex${CG_TOOL_SUFFIX}.exe" --ti_txt "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.txt" -order MS -romwidth 16

    The command to produce the Intel-HEX output.

    "${CG_TOOL_ROOT}/bin/hex${CG_TOOL_SUFFIX}.exe" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 16

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • AartiG
    Posted by AartiG
    on Apr 09 2012 10:51 AM
    Guru70585 points

    GLEN PANKEY

    The site didn't seem to allow ".out" files so it is in the attached zip file.

    The zip file was not attached. Could you please reattach? Thanks!


    If a post answers your question please mark it with the "Verify Answer" button

    Search the wikis for common questions: CGT, BIOS,  CCSv3, CCSv4
    Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GLEN PANKEY
    Posted by GLEN PANKEY
    on Apr 09 2012 11:02 AM
    Prodigy40 points

    7142.My.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GLEN PANKEY
    Posted by GLEN PANKEY
    on Apr 09 2012 11:04 AM
    Prodigy40 points

    Hopefully that worked.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • AartiG
    Posted by AartiG
    on Apr 09 2012 12:36 PM
    Verified Answer
    Verified by AartiG
    Guru70585 points

    Glen,

    When you use the -romwidth 16 option with the Intex hex format, you should see 2 resulting hex files, each containing 16 bits of each word. If you'd like a single hex file, use the -romwidth 32 option. The number of output files depends on the memory width (of the target memory system) and ROM width specified. The default memory width for ARM is 32 bits and so when you specify a rom width of 16, you get 2 output files. Details are in the TMS470 Assembly Language Tools Users Guide, chapter 11.

    For the TI-TXT format, the memory width and ROM width cannot be changed, which results in a single file output regardless of what is specified in the -romwidth option. Hope this helps clarify.


    If a post answers your question please mark it with the "Verify Answer" button

    Search the wikis for common questions: CGT, BIOS,  CCSv3, CCSv4
    Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Glen Pankey103186
    Posted by Glen Pankey103186
    on Apr 10 2012 13:15 PM
    Prodigy10 points

    AartiG,

    That fixed it.  I should have dug deeper.   I just selected the predefined step to create an Intel hex file and it was set at 16 bits wide.  As a side note it also didn't create 2 files it only created 1.  Doesn't matter I'm up and working with the width set to 32 bits.

    Thanks for your help.

    Glen

    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