This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE buttonless DFU compiler error using Clang

Hi, Nordic.

I want to use BLE buttonless DFU sample application.

I tried to compile it using SEGGER Studio + clang, but compile error occurs as the below.

How can I build it with clang. Any help would be greatly appreciated.

Environment:  nRF52832 + S132(v5.1.0) + SDK 14.2.0.

Settings of SEGGER Embedded Studio

Compile error

  • Hi hitoshi,

    We do not support armclang (ARM's variant of llvm) or LLVM at this point.

    In our code base, clang will have problems with inline assembly, floating point (see here how that is declared), and most likely other things as well.

    Clang and the rest of the llvm suite isn't quite ready for the embedded ARM cortex M devices yet, and would require a mix of using GCC and LD to produce a working binary, and the clang assembler has GCC compatibility, but not 100 %.

    LLVM is a project that is moving quickly, so I would not be surprised if the situation changes in the near future.

    Best regards

    Håkon

Related