Cmake Keil


You must compile the Thingy firmware using either GCC or Keil μVision.

Cmake keil project
  1. CMake is a versatile tool that helps you build C/C projects on just about any platform you can think of. It’s used by many popular open source projects including LLVM, Qt, KDE and Blender. All CMake-based projects contain a script named CMakeLists.txt, and this post is meant as a guide for configuring and building such projects.
  2. CMake only generates project files for older Eclipse CDT versions (had problems opening them with Eclipse Oxygen(?)), and last time I tried, Eclipse couldn't open a CMake project natively either. I switched to VSCode then and was very happy with it.
  3. CMakeLists.txt; Generated on Thu Apr 9 2020 15:49:22 for CMSIS-DSP Version 1.8.0 by Arm Ltd. All rights reserved.

For prerequisites related to compiling, see Nordic Thingy:52 GitHub page.


2 The CMake List. CLion is a brilliant product for developers to build their product on a cross-compiling platform, a lot of features of CLion make your developing work faster and easier, yeah, the IAR and Keil are not smart yet, but anyway, those two products are easier for you to compile and download, they are excellent products.

Before starting this procedure, make sure you have Keil installed on your computer.

Cmake keilar

Cmake Keil Armcc

Follow these steps to compile the Thingy firmware using Keil:

Surfshark share

  1. Navigate to the folder projectpca20020_s132arm5_no_packs and double-click the project file ble_app_thingy_s132_pca20020.uvprojx. The μVision integrated development environment (IDE) opens.
  2. If you are compiling for the newest Thingy hardware version, select release from the target drop-down menu, as shown in the figure.
  3. Select the appropriate Thingy version from the list. To check the version of your Thingy, you must remove the top rubber cover. The version number can be found on a white label on the PCB. To compile a debug version, select debug.
  4. To build the project, press F7 or click Build. The output will be visible in the Build Output window at the bottom and should finish with '0 Errors, 0 Warnings'. If you are compiling for an older Thingy version, you will receive a warning stating the version that you are compiling for.

Cmake Keil Model

Before starting this procedure, make sure you have the following components installed on your computer:

  • GNU toolchain for ARM Cortex-M
  • GNU make or CMake

Follow these steps to compile the Thingy firmware using GCC:

  1. Set up the path in or makefile.posix, depending on the platform that you are using. The .posix file is used when working on either Linux or OS X.
    1. Open the makefile in a text editor.
    2. Make sure that the GNU_INSTALL_ROOT variable points to your GNU Tools for ARM Embedded Processors directory. For example:
      GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.9 2015q3 // Toolchain path
      GNU_PREFIX := arm-none-eabi
  2. Navigate to the folder projectpca20020_s132armgcc.
  3. Run the following command to compile the Thingy application code: