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.

msp430-elf-gcc still not searching include path for devices.csv

Part Number: MSP430-GCC-OPENSOURCE
Other Parts Discussed in Thread: MSP430FR2512

Tool/software: TI C/C++ Compiler

Hello! I noticed that there was this previous thread about msp430-elf-gcc not searching its include paths for devices.csv: https://e2e.ti.com/support/development_tools/compiler/f/343/t/647209?Compiler-MSP430-GCC-OPENSOURCE-Feedback-on-msp430-gcc 

msp430_gcc_7-3-1-23

However, GCC still does not appear to be searching for devices.csv in its include path on the latest version of GCC:

[kelvin@batmanbatman ~]$ msp430-elf-gcc -o main.elf main.c -mmcu=msp430fr2512
cc1: warning: devices.csv not found on any include paths.
Please obtain the latest version of the msp430-gcc-support-files archive from:
"software-dl.ti.com/.../index_FDS.html"
and place the full path to the "include" directory containing devices.csv on an include path specified with -I

Defaulting to the hard-coded device data...
cc1: warning: Unrecognized MCU name 'msp430fr2512', assuming that it is just a MSP430 with no ha
Use the -mcpu and -mhwmult options to set these explicitly.

I am on version 7.3.1-24:

[kelvin@batmanbatman ~]$ msp430-elf-gcc --version
msp430-elf-gcc (Mitto Systems Limited - msp430-gcc 7.3.1.24) 7.3.1
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GCC can find its include files because I'm including msp430.h in main.c, and it'll compile without the unrecognized MCU name warning with other, older devices. It will also compile with SP430FR2512 if I add "-I/usr/msp430-elf/include" to the command line arguments.

Can you guys confirm whether or not this is expected behavior, and if there will be a fix any time soon?

Thanks,

Kelvin

  • How the MSP430 compiler finds and uses the MSP430 GCC support files (like devices.csv) is documented in the section titled Using MSP430 GCC Support Files in the MSP430 GCC compiler manual.  

    There are some further limitations.  I discovered you have to specify the directory name in "Unix style" similar to ...

    % msp430-elf-gcc -o main.elf main.c -mmcu=msp430fr2512 -I/ti/ccsv8/ccs_base/msp430/include_gcc -L/ti/ccsv8/ccs_base/msp430/include_gcc

    Note the forward slashes.  That does not seem right.  So, I want to file a bug report.  At the moment, I don't know how to do that.  I'll have to get back to you on that.

    Thanks and regards,

    -George

  • Thanks! Sorry, I should've read the documentation more closely
  • George Mock said:
    Note the forward slashes.  That does not seem right.  So, I want to file a bug report.  At the moment, I don't know how to do that.  I'll have to get back to you on that.

    I filed MSPGCC-84 in the SDOWP system to have this addressed.  

    Thanks and regards,

    -George