Skip to main content
etheory
Senior
June 22, 2023
Question

Custom toolchain support for STM32CubeIDE to add clang/llvm support

  • June 22, 2023
  • 3 replies
  • 4591 views

Dear ST,

I want to be able to use the clang/llvm toolchain here: https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/tags with STM32CubeIDE.

There was a comment on this community site that you would be looking in to custom toolchain support back in 2020/2021. It is now half way through 2023 and I don't see any info (unless I'm missing it) on how to add custom toolchains to STM32CubeIDE.

I want to use clang/llvm as it is a better compiler/codegen than gcc with regards to code performance, ESPECIALLY for ARM intrinsics support.

How can I add clang/llvm support to STM32CubeIDE?

If it's ugly and complex I don't mind, it'll be well worth it to me since I'm unable to get the performance I was hoping for with the default gcc toolchain.

Thanks.

    This topic has been closed for replies.

    3 replies

    Pavel A.
    June 23, 2023

    While you're waiting for reply from ST: have you seen the toolchain manager of CubeIDE ? Have you tried to fit that clang toolchain into the required tree structure (if it is not already)?

    etheory
    etheoryAuthor
    Senior
    June 23, 2023

    Hi @Pavel A. thanks for the reply. No, I've not seen any toolchain manager for CubeIDE unless you are referring to this:

    etheory_0-1687521511918.png

    Which doesn't support anything other than gcc due to the way the interface is designed to require a specific directory structure that matches the gcc toolchain. I did try and point it to the clang toolchain but it didn't work:

    etheory_1-1687521640020.png

    Thanks for the suggestion though.

    Associate III
    March 9, 2024

    Following