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.

CCS/MSP432P4111: Using GCC Compiler with the CMSIS DSP Library

Part Number: MSP432P4111

Tool/software: Code Composer Studio

Hi,

I have a working project which is based on the TI compiler.

Because of speed up tests, I want to switch to the GCC compiler.

I switched the compiler in the project properties -> General -> Compiler version

I read this from a TI-paper that this the/one way to swith to GCC, but I have a lot of errors I don't know to solve.

I also added the "Libraries" and "Library search path" from the Ti compiler properties, while I did this, I replaced some names pattern ccs -> gcc.

One of the error says that the driverlib.h don't exists. But as you can see it is an the setting I would say are correct.
Where is the problem, maybe the other errors are frome the same type.

  • Hi,

    I don't know all the steps to convert this particular project from TI to GCC, but I can comment on the errors at hand.

    You are conflating the linker with the compiler include paths. The #include <> will use the options under the GNU Compiler and not GNU Linker paths.

    In this case, you must set a compiler include path that points to the directory C:\ti\simplelink_msp432p4_sdk_2_30_00_14\source to solve the first #include

    Likewise, you need to add a compiler include path to point to the arm_math.h and the msp.h files.

    After that you can start concentrating on further issues with the project.

    Hope this helps,
    Rafael
  •  Hi Rafael,

    thanks a lot. I had to complet Compiler paths and also the symbols...

    Now I only have 5 mistakes left :-)

    I have no idea what it could be, a clean or rebuilt doesn't help.

  • Hi,

    The last error seems to indicate the GCC does not like the "word" designator of the branch instruction of the file <startup_msp432p4111_ccs.c> The dead giveaway is the first error "bad instruction" and the filename is mentioned in messages 2 and 4.

    Looking at a few startup assembly examples for GCC I think you should remove the ".w" in the branch opcode. I think you will not have a problem given the device is already in thumb mode, but hopefully you will not have any additional problems.

    Regards,
    Rafael
  • Hi Rafael,

    where I can find the <branch opcode> to remove the <.w>. I also can't find the <startup_msp432p4111_ccs.c> file.

    Thank you

  • Hi,

    That information is entirely dependent on your project; for our example projects, it is usually under a directory namec "ccs".

    Hope this helps,

    Rafael

  • Hi Rafael,

    Thanks for your reply.

    Becaus of the switch from TI to GCC Compiler I had some old ccs files and folders that I deleted.

    And I fixed one missing include path. Now I have left 5 other errors, and warnings.

    If I comment the #include <arm_math.h> then this warnings are away, but the errors are there anyway.

    In the next picture I have some more information about the error from line 153 and 149:

    I hope with this descprition you can give me help once again...

    Thank you very much !

  • ... the warnings I have solved but not the errors.

  • Hello,

    this errors are really tough...

    I compared ALL project properties with a working GCC example project from the EXP432P401R, but the error stayed...

    No I have a working project with the MSP432P4111 and GCC:

    I made a copy of the project "cmsis_dsplib_vibration_msp432p401r_MSP_EXP432P401R_nortos_gcc" and adapted it to the ...4111 MCU.

    The errors are gone, why i don't know.