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/LAUNCHXL-CC2640R2: CC2640r2f and C++ error: atomic_exchange: no such overload

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640R2F, BLE-STACK

Tool/software: Code Composer Studio

Hello,

I am trying to work C++ with multi role on CC2640r2f launchpad.

When I compile I get these errors (this file is "atomic"):

What is this? How do I solve this?

I am using compiler version TI v18.12.3.LTS (which supports C++ 14).

Thanks,

Amit

  • I don't recognize this file ...

    Amit Maoz said:
    When I compile I get these errors (this file is "atomic"):

    Where does it come from?

    Amit Maoz said:
    I am using compiler version TI v18.12.3.LTS (which supports C++ 14).

    Unfortunately, not all features of C++14 are supported.  Among the unsupported features is those in std::atomic.  For more detail, please see the article C++14 Support for ARM and MSP Compilers.

    Thanks and regards,

    -George

  • Hey George,

    I've never added this atomic file, so why do I get this error?

    How do I remove it from my project?

    Thanks,

    Amit

  • I don't understand your situation very well.  It seems likely you are using a software development kit from TI.  The software in this kit is probably not intended to be built with the TI ARM compiler, but some GCC ARM compiler which does support the atomic features under Linux, or some other OS.  To help you further, I need to connect you with an expert on this kit.  Please tell me the name of this software development kit, or where you got it, or some other information that allows us to identify it.

    Thanks and regards,

    -George

  • I've imported the multi_role project in code composer studio, then created new C++ files of my own. Tried to compile it and got those errors.

    Waiting for an expert.

    Thanks,

    Amit

  • Hi Amit,

    What file is this?

    As George says, out BLE-Stack example projects don't support C++. Maybe there is a C/C++ forum where you can ask for help on converting this?

  • Hey Marie,

    So how do I start a new project (not based on your BLE Stack examples) that enables all the BLE functionality?

    Simply open a new project and include "icall_ble_api.h"? Anything else?

    Thanks,

    Amit

  • Hi Amit,

    We recommend to start with a BLE-Stack project and make your changes based on it.

    I'm sorry, what you are trying to do is not supported by TI and I don't have any experience in using C++ with the BLE-Stack. Maybe there is a C/C++ forum where you can ask for help on converting this?