This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Launchpad RM46LX loading error with message "Unhandled stab entry SEVERE: Encountered a problem loading file:"

Other Parts Discussed in Thread: HALCOGEN, CCSTUDIO, ENERGYTRACE, MSP430WARE, UNIFLASH

Hardware: RM46 launchpad; using FREE-RTOS port provided by TI and generated halcogen project for FREE-RTOS() with GNU GCC tools

I have successfully generated the application(sumdiff.elf) for the rm46lx with FREE RTOS using GNU GCC tool-chain.
However, i am having trouble while lodaing the application. I am able to connect to the hardware but i am getting  an message "Unhandled stab entry
SEVERE: Encountered a problem loading file:" .

IS there something wrong with the generated executable?

snapshot of loadti

C:\ti\ccsv6\ccs_base\scripting\examples\loadti>loadti -c C:\Users\aparajul\ti\CCSTargetConfigurations\RM46Lx.ccxml -x C:\work\rm46HDK\Project1_RM46x\log.xml C:\work\rm46HDK\Project1_RM46x\sumdiff.elf -a -v

***** DSS Generic Loader *****

START: 13:03:13 GMT-0400 (EDT)

Configuring Debug Server for specified target...
Done
TARGET: Texas Instruments XDS110 USB Debug Probe_0
Connecting to target...
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
testEnv.outFiles: C:\work\rm46HDK\Project1_RM46x\sumdiff.elf
Loading C:\work\rm46HDK\Project1_RM46x\sumdiff.elf
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset

CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset

SEVERE: CortexR4: GEL: Encountered a problem loading file: C:\work\rm46HDK\Project1_RM46x\sumdiff.elf process_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entry

SEVERE: Encountered a problem loading file: C:\work\rm46HDK\Project1_RM46x\sumdiff.elf
process_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entry
SEVERE: Error loading "C:\work\rm46HDK\Project1_RM46x\sumdiff.elf": Encountered a problem loading file: C:\work\rm46HDK\Project1_RM46x\sumdiff.elf
process_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entryprocess_stab: Unhandled stab entry
Error code #4011, C:\work\rm46HDK\Project1_RM46x\sumdiff.elf load failed!
Aborting!
333
END: 13:03:32 GMT-0400 (EDT)

  • Avishek,

    No idea. Would need to look at the file.
  • Thank you Anthony for your reply.
    which file are you referring to ? The generated executable "sumdiff.elf" ?
  • Could you please elaborate on what should i be checking on the generated executable "sumdiff.elf"?
    I can use the "readelf" and look for any specific flags with which the executable is generated.
    used flags
    CompilerFlags = '-mcpu=cortex-r4f -march=armv7-r -mfpu=vfpv3-d16 -mlittle-endian -r -fno-builtin -mapcs -gdwarf-3';
    AssemblerFlags = '-mcpu=cortex-r4f -march=armv7-r -mfpu=vfpv3-d16 -mlittle-endian -r';
    LinkerFlags = ' --specs=nosys.specs -mcpu=cortex-r4f -march=armv7-r -mfpu=vfpv3-d16 -mlittle-endian ';
  • No idea what we're looking for to be honest.
    But without the .elf file to reproduce the issue - I can't look at it and can't pull in an expert in the TI XDS-GDB server if needed.
  • Attached is the generated elf file and the target  0028.elfFile.zipconfiguration file.

  • Hi Avishek,

    I'm having some trouble reproducing the problem.

    I do get an error but it's very different:

    c:\ti\ccsv6\ccs_base\scripting\examples\loadti>loadti -c C:\Users\a0321811\Desktop\misc\forum\mathworks\RM46Lx.ccxml C:\Users\a0321811\Desktop\misc\forum\mathworks\sumdiff.elf -a -v

    ***** DSS Generic Loader *****

    START: 14:33:25 GMT-0500 (CDT)

    Configuring Debug Server for specified target...

    Done

    TARGET: Texas Instruments XDS110 USB Debug Probe_0

    Connecting to target...

    CortexR4: GEL Output:   Memory Map Setup for Flash @ Address 0x0

    testEnv.outFiles: C:\Users\a0321811\Desktop\misc\forum\mathworks\sumdiff.elf

    Loading C:\Users\a0321811\Desktop\misc\forum\mathworks\sumdiff.elf

    CortexR4: GEL Output:   Memory Map Setup for Flash @ Address 0x0 due to System Reset

    CortexR4: GEL Output:   Memory Map Setup for Flash @ Address 0x0 due to System Reset

    SEVERE: Unable to get address for symbol: ___c_args__

    Error code #4012, C:\Users\a0321811\Desktop\misc\forum\mathworks\sumdiff.elf load failed!

    Aborting!

    END: 14:33:44 GMT-0500 (CDT)

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

    I tried a few ideas like putting the firmware of the on-board emulator back to an old version but the loadti tool picks up on that problem and

    outputs:


    Configuring Debug Server for specified target...
    Done
    TARGET: Texas Instruments XDS110 USB Debug Probe_0
    Connecting to target...
    SEVERE: IcePick: Error connecting to the target: (Error -1040 @ 0x0) A firmware update is required for the debug probe. Click the "Update" button to update the firmware and connect to the debug target. DO NOT UNPLUG THE DEBUG PROBE DURING THE UPDATE. (Emulation package 6.0.407.3)

    So I think if it were just the firmware on your launchpad you'd get the above error rather than the cryptic one.

    And I tried two different versions of CCS v6 that i had installed.


    At this point maybe it's worthwhile to get the specific CCS version numbers that you have and are trying to use so that we can try to match exactly.

    Best Regards,

    -Anthony

  • Also I forgot to tell you where to find the specific versions.. for my setup I just went to
    Help->About and pressed the Installation Details button to bring up the Installed Software list,
    then selecting it all you can copy / paste like this.. I think we're mainly interested in
    Hercules Emulation, Debug Server Flash, TI Emulators but then there might be others so best
    to get the whole list like this:

    Analysis Suite 4.1.0.201602080440 com.ti.dvt2.analysis.suite.feature.group Texas Instruments
    ARM Compiler Tools 16.6.0 com.ti.cgt.tms470.16.win32.feature.group Texas Instruments
    ARM Compiler Tools 15.12.3 com.ti.cgt.tms470.15.win32.feature.group Texas Instruments
    C/C++ Development Tools 8.8.0.201509131935 org.eclipse.cdt.feature.group Eclipse CDT
    C/C++ GCC Cross Compiler Support 8.8.0.201509131935 org.eclipse.cdt.build.crossgcc.feature.group Eclipse CDT
    C/C++ Memory View Enhancements 8.8.0.201509131935 org.eclipse.cdt.debug.ui.memory.feature.group Eclipse CDT
    C/C++ Remote Launch (Requires RSE Remote System Explorer) 8.8.0.201509131935 org.eclipse.cdt.launch.remote.feature.group Eclipse CDT
    CCS and SAT Common Components Feature 6.2.0.201604131600 com.ti.tools.common.feature.group Texas Instruments
    CCS Documentation 6.1.3.20160419 com.ti.ccstudio.doc.win32.feature.group Texas Instruments
    CCS Launcher 6.1.3.20160224 com.ti.ccstudio.launcher.win32.feature.group Texas Instruments
    CCS Utilities 1.0.0.20160324 com.ti.ccstudio.utils.cli.win32.feature.group Texas Instruments
    CCStudio p2 Tool Feature 6.0.0.201508191607 com.ti.ccstudio.p2tool.feature.group Texas Instruments
    Chromium Browser Feature 6.2.0.201604131600 com.ti.chromium.browser.feature.group Texas Instruments
    Code Composer Studio Base Components 6.2.0.01631 com.ti.ccstudio.base.feature.group Texas Instruments
    Code Composer Studio IDE ARM Components 6.2.0.201604131600 com.ti.ccstudio.tms470.feature.group Texas Instruments
    Code Composer Studio IDE Main Feature 6.2.0.201604131600 com.ti.ccstudio.idemain.feature.group Texas Instruments
    Code Composer Studio IDE MSP430 Components 6.2.0.201604131600 com.ti.ccstudio.msp430.feature.group Texas Instruments
    Code Composer Studio IDE Workflow 6.2.0.201604131600 com.ti.ccstudio.workflow.feature.group Texas Instruments
    Compiler Tools On-line Documentation 1.1.5 com.ti.cgt.dmed.win32.feature.group Texas Instruments
    Debug Server 6.2.0.1631 com.ti.ccstudio.debugserver.win32.feature.group Texas Instruments
    Debug Server Flash 6.2.0.1631 com.ti.dsflash.win32.feature.group Texas Instruments
    DVT - EnergyTrace 4.1.0.201602080440 com.ti.dvt.msp430.power.feature.group Texas Instruments
    DVT - Graph Visualization 4.1.0.201602080440 com.ti.dvt2.graph.visualization.feature.group Texas Instruments
    DVT - Profiler Analysis Manager 4.1.0.201602080440 com.ti.dvt2.profileanalysismanager.feature.group Texas Instruments
    DVT - System Analyzer 4.1.0.201602080440 com.ti.dvt2.uia.feature.group Texas Instruments
    DVT - Trace Control 4.1.0.201602080440 com.ti.dvt2.trace.control.feature.group Texas Instruments
    Eclipse Git Team Provider 4.0.3.201509231615-r org.eclipse.egit.feature.group Eclipse EGit
    Eclipse Help System 2.1.1.v20150904-0015 org.eclipse.help.feature.group Eclipse.org
    Eclipse Platform 4.5.1.M20150904-0015 org.eclipse.platform.ide Eclipse.org
    Equinox p2, Discovery UI support 1.0.300.v20150430-1836 org.eclipse.equinox.p2.discovery.feature.feature.group Eclipse.org - Equinox
    Equinox p2, Provisioning for IDEs. 2.2.101.v20150826-1318 org.eclipse.equinox.p2.user.ui.feature.group Eclipse.org - Equinox
    GCC ARM Compiler Tools 4.9.3.2015q3_20150921 com.ti.gcc.arm.win32.feature.group Texas Instruments
    Graphical Editing Framework GEF 3.10.1.201508170204 org.eclipse.gef.feature.group Eclipse GEF
    Graphical Modeling Framework (GMF) Runtime 1.7.0.201306111432 org.eclipse.gmf.feature.group Eclipse Modeling Project
    GUI Composer Backplane Feature 6.1.0.201604131600 com.ti.gc.backplane.feature.group Texas Instruments
    GUI Composer Feature 6.1.0.201603082000 com.ti.gc.common.feature.group Texas Instruments
    GUI Composer for CCS 1.0.0.201603082000 com.ti.ccstudio.gui.composer.ccs.feature.group Texas Instruments
    GUI Composer Program Model Feature 6.1.0.201604131600 com.ti.gc.pm.feature.group Texas Instruments
    Hercules Emulation 6.0.7 com.ti.ccstudio.hercules.win32.feature.group Texas Instruments
    IDE - Debug Server Integration Feature 6.0.1.201604131600 com.ti.debug.server.feature.group Texas Instruments
    Image Analyzer 4.1.0.201602080440 com.ti.dvt2.via.ccs.feature.group Texas Instruments
    JavaScript Development Tools 1.6.201.v201508262249 org.eclipse.wst.jsdt.feature.feature.group Eclipse Web Tools Platform
    LWInstaller 6.1.3.00033 com.ti.ccstudio.installer.win32.feature.group Texas Instruments
    Marketplace Client 1.4.1.v20150916-1928 org.eclipse.epp.mpc.feature.group Eclipse Marketplace Client
    MSP430 Compiler Tools 15.12.3 com.ti.cgt.msp430.15.win32.feature.group Texas Instruments
    MSP430 Compiler v4.4 Help 4.4.1.201501021554 com.ti.cgt.msp430.4.4.help.feature.group Texas Instruments
    MSP430 Emulators and Device Support Files 6.3.4.6 com.ti.ccstudio.msp430.emu.win32.feature.group Texas Instruments
    MSP430ware (IDE Client) 3.30.0.18 com.ti.mcu.msp430ware.product.ui.feature.group Texas Instruments Inc.
    MSP430ware (Target Content) 3.30.0.18 com.ti.mcu.msp430ware.product_3.30.0.18.feature.group Texas Instruments Inc.
    MSP432 Device Support Files 6.3.1.1 com.ti.ccstudio.msp432.emu.win32.feature.group Texas Instruments
    MSPWare for Windows 3.30.0.18 com.ti.msp430.msp430ware.win32.feature.group Texas Instruments
    p2appf 6.0.0.201604131600 com.ti.ccstudio.p2appf.feature.group Texas Instruments
    Remote System Explorer End-User Runtime 3.7.0.201505221634 org.eclipse.rse.feature.group Eclipse TM Project
    ROV 4.1.0.201602080440 com.ti.dvt2.rov.feature.group Texas Instruments
    RTSC/XDCtools (IDE Client) 3.32.0.06 org.eclipse.rtsc.xdctools.product.ui.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.32.0.06 org.eclipse.rtsc.xdctools.product_3.32.0.06.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.31.3.43 org.eclipse.rtsc.xdctools.product_3.31.3.43.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.31.1.33 org.eclipse.rtsc.xdctools.product_3.31.1.33.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.31.0.24 org.eclipse.rtsc.xdctools.product_3.31.0.24.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.30.1.25 org.eclipse.rtsc.xdctools.product_3.30.1.25.feature.group Texas Instruments
    RTSC/XDCtools (Target Runtime Support) 3.25.4.88 org.eclipse.rtsc.xdctools.product_3.25.4.88.feature.group Texas Instruments
    RXTX End-User Runtime 2.1.7.4_v20071016 gnu.io.rxtx.feature.group RXTX.org
    Spectrum Digital Emulators 5.2.0.14 com.sd.ccstudio.emulation.win32.feature.group Texas Instruments
    Stellaris Emulators 2.0.3.12770 com.ti.stellaris.setup.win32.feature.group Texas Instruments
    TargetDB Default Props 6.0.0.20131206 com.ti.ccstudio.targetdb.props.default.win32.feature.group Texas Instruments
    TI ARM Compiler 5.2. Help 5.2.0.201501080900 com.ti.cgt.arm.5.2.help.feature.group Texas Instruments
    TI Emulators 6.0.407.3 com.ti.emulation.pack.win32.feature.group Texas Instruments
    TI Target Content 1.0.0.201602261456 com.ti.targetcontent.feature.group Texas Instruments
    TI-RTOS (IDE Client) 1.21.0.09 com.ti.rtsc.TIRTOS.product.ui.feature.group Texas Instruments
    TI-RTOS (Target Content) 1.21.0.09 com.ti.rtsc.TIRTOS.product_1.21.0.09.feature.group Texas Instruments
    TI-RTOS for C6000 (IDE Client) 2.0.1.23 com.ti.rtsc.TIRTOSc6000.product.ui.feature.group Texas Instruments
    TI-RTOS for C6000 (Target Content) 2.0.1.23 com.ti.rtsc.TIRTOSc6000.product_2.0.1.23.feature.group Texas Instruments
    Tiva C Series ARM MCUs 2.1.1.15071 com.ti.tiva_tm4c.setup.win32.feature.group Texas Instruments
    Tiva E Series ARM MCUs 2.1.1.15071 com.ti.tiva_tm4e.setup.win32.feature.group Texas Instruments
    Tiva/Stellaris ICDI Debug Probe 2.1.1.15350 com.ti.tiva_stellaris.setup.win32.feature.group Texas Instruments
    TM Terminal 4.0.0.201506040610 org.eclipse.tm.terminal.feature.feature.group Eclipse.org - Target Management
    Trace Analyzer 4.1.0.201602080440 com.ti.dvt2.trace.ccs.feature.group Texas Instruments
  • Separate comment - would be good for you to try the cloud based uniflash available https://dev.ti.com/
    It works w. the launchpad you are using and would be somewhat independent.

    I could download the .elf file with this tool. Verify failed on some locations in RAM but these I think have to do with the fact that the program probably ran and modified the locations in RAM.