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

KEIL build with SDK 16.0.0 fails

I am trying to port my build from Eclipse (based on the GCC tool chain) to a KEIL uVision build system.

I am using KEIL ARM Compiler version 6.15. Most of the files compile fine except for the file:
'nrf_svci_async_function.h' (and its dependencies).

I have isolated at least one thing that is a bit worrisome and that is that (for reasons unknown to me at this time) the ARM Compiler defines the symbol __GNUC__ and NOT the symbo __CC_ARM. This results in a whole bunch of incorrect preprocessor symbols being picked up in the build.

Other than hacking the header files deep within the Nordic SDK, is there any other option to convince the KEIL build system to not define __GNUC__ so that the correct code fragment is used.

Cheers
RMV

  • Hello,

    That is a good idea. I can't discuss Nordic's roadmap details here on DevZone. For such questions, please contact our RSM (Regional Sales Manager) for your region. If you are already in contact with a Sales Rep, you can use that person. If not, please let me know if you are interested in the RSM details. Send me a PM containing your location, and I will send you the contact details.

    BR,

    Edvin

Related