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.

Open .out file with gdb

Hi,

I'm a linux user and CCS on linux has no support to load/debug msp430.

As an alternative to CCS i'm using mspdebug to load my software.

I'm also able to run a gdbserver through mspdebug.

Unfortunately I cannot open my .out with msp430-gdb. I believe this is because I'm compiling with cl430 coming with ccsv6.

When I'm trying to open my .out file with msp430-gdb coming from my distribution, I'm getting the following error message:
blinkLed_irq.out": not in executable format: File format not recognized

Though the file command return this is a non stripped ELF file:
# file blinkLed_irq.out
blinkLed_irq.out: ELF 32-bit LSB  executable, version 1 (SYSV), statically linked, not stripped

Here is my msp430-gdb version:
# msp430-gdb --version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu.org/.../gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=msp430".
For bug reporting instructions, please see:
<www.gnu.org/.../>.

Does the ti-cgt-msp430_4.4.6 toolchain comes with a gdb client?

Thanks a lot.

Kind regards,

Laurent Carlier

  • Laurent,

    The TI compiler for MSP430 does not come with a gdb client.

    You mentioned that CCS has no support to debug MSP430 on Linux. In general CCS can debug MSP430 devices on Linux. However there is a limitation depending on what debug probe is being used. If you have a G2 LaunchPad or older board that has the eZ430 FET built onto the board then it is not supported on LInux. Newer LaunchPads or standalone MSP FETS should be fine.

    Regards,
    John
  • I found another thread where using the TI MSP430 compiler with GDB was being discussed. There is some useful info there.

    e2e.ti.com/.../1682964

    One thing that they found was that it may be necessary to build with this option: --disable:dwarf_extensions