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.

TM4C129EKCPDT: TI ARM Clang and TM4C TivaWare Driverlib

Part Number: TM4C129EKCPDT
Other Parts Discussed in Thread: ARM-CGT

Tool/software:

Hi,

I would be very grateful for confirmation that it is possible to use TI ARM Clang for TM4C devices.

My concern is the final answer to the following post:

TM4C123GH6PZ: driverlib and ti-cgt-armllvm_4.0.1.LTS wchar_t incompatibility

Here is the part that concerns me:

TM4C Driverlib is not compatible with Clang compiler. Please use TI Arm compiler only for TM4C device. You can download the latest TI Arm compiler from https://www.ti.com/tool/ARM-CGT.

I am not sure how to understand the sentence above.

Please confirm: can I compile my application code with TI ARM Clang (ARM-CGT-CLANG) and link it with Driverlib compiled with TI ARM compiler (ARM-CGT)?

The TI Arm Clang Compiler Tools User's Guide v4.0 lists Cortex-M4 as one of the supported processors, other discussions like TM4C1290NCPDT: TI ARM Clang Migration and Tiva Bootloader issue suggest that it is possible to use TI ARM Clang for TM4C devices.

I understand that the source code of the TM4C Driverlib is not compatible with TI ARM Clang, so the Driverlib has to be compiled using standard TI ARM compiler (ARM-CGT). I also understand that the resulting linker warnings about wchar16_t are essentially harmless. But can I use Clang to compile my code and use Driverlib compiled by standard TI ARM compiler?

I am asking because I... think I might have found a bug in ARM-CGT and switching to TI ARM Clang solves the problem, which is very important for me. That's why I'd be particularly grateful for any information.

Best regards,

Kuba