nRF9160 custom board Re-running CMake #nrf9160


David Kaplan
 
Edited

We have created a custom nRF9160 board which arrived in Las Vegas which I debug by Teams. The hardware engineer has the same version of Nordic nRF Connect SDK v1.51 (SES) as on my computer.
We both use Windows 10.

I update the following files
 1) c:\ncs\v1.5.1\zephyr\drivers\sensor\lsm6dsl\lsm6dsl.c
       Changes made in the sensor driver for retrieving the raw accelerometer X,Y,z int16 readings and for writing and reading raw chip byte setup registers.
 2) c:\ncs\v1.5.1\zephyr\include\drivers\sensor\lsm6dsl_drv.h
       Added a new raw channel and new raw register attributes defines
 3) c:\ncs\v1.5.1\zephyr\boards\arm\nrf9160axion_nrf9160
      Copied nrf9160dk_nrf9160 folder with a few adjustments for our custom board.
 4) D:\Projects\ami_axion
      Our project

For two days I sent updated files and the hardware engineer reran the nRF Connect SDK script from the SES File menu to rerun the scripts which act on the new files and then he performs a clean and a rebuild.
This morning, the rebuilt took such a long time and then returned with an error.
On my computer everything works. I resent the files and verified that he updated them in the correct places.
After several hours trying, I looked at the build window and saw that there was an endless loop of "Re-running CMake...".
In the log, it also showed one warning:
  warning: 'has-be32k' is marked as deprecated in 'properties:' in C:/Users/Omer_Z/ncs/v1.5.1/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@b000/mx25r6435f@0.
This does not occur on my setup and when building the project for the original nrf9160dk_nrf9160(ns) board in Las Vegas, all compiled well.
Both the nrf9160dk_nrf9160ns.overlay and the nrf9160axion_nrf9160ns.overlay files have the has-be32k setting for the external memory.
I removed the has-be32k setting from the custom board's overlay but we just got to another problem.

I send the project folder compressed without the build_nrf9160axion_nrf9160ns or build_nrf9160dk_nrf9160ns directories since they are created with the nRF Connect SDK script from the SES File menu.

How I can I understand the exact reason for my problems?

Is there a different way to do things?

Thanks David


  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-mkdir’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-mkdir’
  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-download’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-download’
  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-update’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-update’
  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-patch’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-patch’
  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-configure’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-configure’
  • Rebuilding ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’ from solution ‘build’ in configuration ‘Common’
  • 1> Combining ‘modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build’
  • 1> [0/1] Re-running CMake...
  • 1> Including boilerplate (Zephyr base (cached)): C:/Users/Omer_Z/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
  • 1> -- Application: C:/Users/Omer_Z/ncs/v1.5.1/nrf/samples/spm
  • 1> -- Using NCS Toolchain 1.5.1 for building. (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/cmake)
  • 1> -- Zephyr version: 2.4.99 (C:/Users/Omer_Z/ncs/v1.5.1/zephyr)
  • 1> -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
  • 1> -- Board: nrf9160axion_nrf9160, Revision: 0.7.0
  • 1> -- Cache files will be written to: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/.cache
  • 1> -- Found dtc: C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
  • 1> -- Found toolchain: gnuarmemb (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt)
  • 1> -- Found BOARD.dts: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/boards/arm/nrf9160axion_nrf9160/nrf9160axion_nrf9160.dts
  • 1> -- Found devicetree overlay: D:/Projects/ami_axion/nrf9160axion_nrf9160ns.overlay
  • 1> warning: 'has-be32k' is marked as deprecated in 'properties:' in C:/Users/Omer_Z/ncs/v1.5.1/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@b000/mx25r6435f@0.
  • 1> -- Generated zephyr.dts: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/zephyr.dts
  • 1> -- Generated devicetree_unfixed.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/devicetree_unfixed.h
  • 1> -- Generated device_extern.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/device_extern.h
  • 1> Parsing C:/Users/Omer_Z/ncs/v1.5.1/zephyr/Kconfig
  • 1> Loaded configuration 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to configuration in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to Kconfig header in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/autoconf.h'
  • 1> -- Configuring done
  • 1> -- Generating done
  • 1> -- Build files have been written to: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm
  • 1> [0/1] Re-running CMake...
  • 1> Including boilerplate (Zephyr base (cached)): C:/Users/Omer_Z/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
  • 1> -- Application: C:/Users/Omer_Z/ncs/v1.5.1/nrf/samples/spm
  • 1> -- Using NCS Toolchain 1.5.1 for building. (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/cmake)
  • 1> -- Zephyr version: 2.4.99 (C:/Users/Omer_Z/ncs/v1.5.1/zephyr)
  • 1> -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
  • 1> -- Board: nrf9160axion_nrf9160, Revision: 0.7.0
  • 1> -- Cache files will be written to: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/.cache
  • 1> -- Found dtc: C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
  • 1> -- Found toolchain: gnuarmemb (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt)
  • 1> -- Found BOARD.dts: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/boards/arm/nrf9160axion_nrf9160/nrf9160axion_nrf9160.dts
  • 1> -- Found devicetree overlay: D:/Projects/ami_axion/nrf9160axion_nrf9160ns.overlay
  • 1> warning: 'has-be32k' is marked as deprecated in 'properties:' in C:/Users/Omer_Z/ncs/v1.5.1/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@b000/mx25r6435f@0.
  • 1> -- Generated zephyr.dts: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/zephyr.dts
  • 1> -- Generated devicetree_unfixed.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/devicetree_unfixed.h
  • 1> -- Generated device_extern.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/device_extern.h
  • 1> Parsing C:/Users/Omer_Z/ncs/v1.5.1/zephyr/Kconfig
  • 1> Loaded configuration 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to configuration in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to Kconfig header in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/autoconf.h'
  • 1> -- Configuring done
  • 1> -- Generating done
  • 1> -- Build files have been written to: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm
  • 1> [0/1] Re-running CMake...
  • 1> Including boilerplate (Zephyr base (cached)): C:/Users/Omer_Z/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
  • 1> -- Application: C:/Users/Omer_Z/ncs/v1.5.1/nrf/samples/spm
  • 1> -- Using NCS Toolchain 1.5.1 for building. (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/cmake)
  • 1> -- Zephyr version: 2.4.99 (C:/Users/Omer_Z/ncs/v1.5.1/zephyr)
  • 1> -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
  • 1> -- Board: nrf9160axion_nrf9160, Revision: 0.7.0
  • 1> -- Cache files will be written to: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/.cache
  • 1> -- Found dtc: C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
  • 1> -- Found toolchain: gnuarmemb (C:/Users/Omer_Z/ncs/v1.5.1/toolchain/opt)
  • 1> -- Found BOARD.dts: C:/Users/Omer_Z/ncs/v1.5.1/zephyr/boards/arm/nrf9160axion_nrf9160/nrf9160axion_nrf9160.dts
  • 1> -- Found devicetree overlay: D:/Projects/ami_axion/nrf9160axion_nrf9160ns.overlay
  • 1> warning: 'has-be32k' is marked as deprecated in 'properties:' in C:/Users/Omer_Z/ncs/v1.5.1/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@b000/mx25r6435f@0.
  • 1> -- Generated zephyr.dts: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/zephyr.dts
  • 1> -- Generated devicetree_unfixed.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/devicetree_unfixed.h
  • 1> -- Generated device_extern.h: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/device_extern.h
  • 1> Parsing C:/Users/Omer_Z/ncs/v1.5.1/zephyr/Kconfig
  • 1> Loaded configuration 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to configuration in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/.config'
  • 1> No change to Kconfig header in 'D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm/zephyr/include/generated/autoconf.h'
  • 1> -- Configuring done
  • 1> -- Generating done
  • 1> -- Build files have been written to: D:/Projects/ami_axion/build_nrf9160axion_nrf9160ns/spm
  • 1> [0/1] Re-running CMake...

Join users@lists.zephyrproject.org to automatically receive all group messages.