Last login: Tue Oct 6 00:25:24 on console mike@Mikes-MacBook-Pro-10-1 ~ % west build -b nrf9160dk_nrf9160ns usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] ... west: error: argument : invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate') mike@Mikes-MacBook-Pro-10-1 ~ % cd ~/ncs mike@Mikes-MacBook-Pro-10-1 ncs % west build -b nrf9160dk_nrf9160ns ERROR: source directory "." does not contain a CMakeLists.txt; is this really what you want to build? (Use -s SOURCE_DIR to specify the application source directory) FATAL ERROR: refusing to proceed without --force due to above error mike@Mikes-MacBook-Pro-10-1 ncs % cd nrf/applications/asset_tracker mike@Mikes-MacBook-Pro-10-1 asset_tracker % ls -al total 104 drwxr-xr-x 15 mike staff 480 Oct 6 16:54 . drwxr-xr-x 6 mike staff 192 Oct 5 16:44 .. -rw-r--r-- 1 mike staff 1182 Oct 5 16:44 CMakeLists.txt -rw-r--r-- 1 mike staff 11472 Oct 5 16:44 Kconfig -rw-r--r-- 1 mike staff 10453 Oct 5 16:44 README.rst drwxr-xr-x 9 mike staff 288 Oct 5 18:13 build_nrf52840dongle_nrf52840 drwxr-xr-x 9 mike staff 288 Oct 6 17:05 build_nrf9160dk_nrf9160ns drwxr-xr-x 3 mike staff 96 Oct 5 16:44 configuration -rw-r--r-- 1 mike staff 919 Oct 5 16:44 lwm2m_carrier_overlay.conf -rw-r--r-- 1 mike staff 2490 Oct 5 16:44 prj.conf -rw-r--r-- 1 mike staff 2110 Oct 5 16:44 prj_qemu_x86.conf -rw-r--r-- 1 mike staff 3065 Oct 5 16:44 prj_thingy91_nrf9160ns.conf -rw-r--r-- 1 mike staff 214 Oct 5 16:44 sample.yaml -rw-r--r-- 1 mike staff 228 Oct 5 16:44 spm.conf drwxr-xr-x 11 mike staff 352 Oct 5 16:44 src mike@Mikes-MacBook-Pro-10-1 asset_tracker % west build -b nrf9160dk_nrf9160ns -- west build: generating a build system Including boilerplate (Zephyr base): /Users/mike/ncs/zephyr/cmake/app/boilerplate.cmake -- Application: /Users/mike/ncs/nrf/applications/asset_tracker -- Zephyr version: 2.3.99 (/Users/mike/ncs/zephyr) -- Found Python3: /Users/mike/.pyenv/versions/3.8.5/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter -- Found west: /Users/mike/.pyenv/versions/3.8.5/bin/west (found suitable version "0.8.0", minimum required is "0.7.1") -- Board: nrf9160dk_nrf9160ns -- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/Users/mike/gnuarmemb) -- Found BOARD.dts: /Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts nrf9160dk_nrf9160ns.dts.pre.tmp:358.32-362.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property nrf9160dk_nrf9160ns.dts.pre.tmp:57.42-69.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000) nrf9160dk_nrf9160ns.dts.pre.tmp:306.19-312.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000) -- Generated zephyr.dts: /Users/mike/ncs/nrf/applications/asset_tracker/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /Users/mike/ncs/nrf/applications/asset_tracker/build/zephyr/include/generated/devicetree_unfixed.h Parsing /Users/mike/ncs/nrf/applications/asset_tracker/Kconfig Loaded configuration '/Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig' Merged configuration '/Users/mike/ncs/nrf/applications/asset_tracker/prj.conf' Configuration saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/zephyr/.config' Kconfig header saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- The ASM compiler identification is GNU -- Found assembler: /Users/mike/gnuarmemb/bin/arm-none-eabi-gcc -- Cache files will be written to: /Users/mike/Library/Caches/zephyr Changed board to secure nrf9160dk_nrf9160 (NOT NS) === child image spm - begin === Including boilerplate (Zephyr base): /Users/mike/ncs/zephyr/cmake/app/boilerplate.cmake -- Application: /Users/mike/ncs/nrf/samples/spm -- Zephyr version: 2.3.99 (/Users/mike/ncs/zephyr) -- Found Python3: /Users/mike/.pyenv/versions/3.8.5/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter -- Found west: /Users/mike/.pyenv/versions/3.8.5/bin/west (found suitable version "0.8.0", minimum required is "0.7.1") -- Board: nrf9160dk_nrf9160 -- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/Users/mike/gnuarmemb) -- Found BOARD.dts: /Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts -- Found devicetree overlay: /Users/mike/ncs/nrf/samples/spm/nrf9160dk_nrf9160.overlay nrf9160dk_nrf9160.dts.pre.tmp:57.42-69.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000) nrf9160dk_nrf9160.dts.pre.tmp:306.19-312.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000) -- Generated zephyr.dts: /Users/mike/ncs/nrf/applications/asset_tracker/build/spm/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /Users/mike/ncs/nrf/applications/asset_tracker/build/spm/zephyr/include/generated/devicetree_unfixed.h Parsing /Users/mike/ncs/zephyr/Kconfig Loaded configuration '/Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig' Merged configuration '/Users/mike/ncs/nrf/applications/asset_tracker/spm.conf' Configuration saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/spm/zephyr/.config' Kconfig header saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/spm/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- The ASM compiler identification is GNU -- Found assembler: /Users/mike/gnuarmemb/bin/arm-none-eabi-gcc -- Cache files will be written to: /Users/mike/Library/Caches/zephyr -- Configuring done -- Generating done -- Build files have been written to: /Users/mike/ncs/nrf/applications/asset_tracker/build/spm === child image spm - end === Changed board to secure nrf9160dk_nrf9160 (NOT NS) === child image mcuboot - begin === Including boilerplate (Zephyr base): /Users/mike/ncs/zephyr/cmake/app/boilerplate.cmake -- Application: /Users/mike/ncs/bootloader/mcuboot/boot/zephyr -- Zephyr version: 2.3.99 (/Users/mike/ncs/zephyr) -- Found Python3: /Users/mike/.pyenv/versions/3.8.5/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter -- Found west: /Users/mike/.pyenv/versions/3.8.5/bin/west (found suitable version "0.8.0", minimum required is "0.7.1") -- Board: nrf9160dk_nrf9160 -- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/Users/mike/gnuarmemb) -- Found BOARD.dts: /Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts -- Found devicetree overlay: /Users/mike/ncs/bootloader/mcuboot/boot/zephyr/dts.overlay nrf9160dk_nrf9160.dts.pre.tmp:57.42-69.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000) nrf9160dk_nrf9160.dts.pre.tmp:306.19-312.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000) -- Generated zephyr.dts: /Users/mike/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /Users/mike/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h Parsing /Users/mike/ncs/bootloader/mcuboot/boot/zephyr/Kconfig Loaded configuration '/Users/mike/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig' Merged configuration '/Users/mike/ncs/bootloader/mcuboot/boot/zephyr/prj.conf' Configuration saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/.config' Kconfig header saved to '/Users/mike/ncs/nrf/applications/asset_tracker/build/mcuboot/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- The ASM compiler identification is GNU -- Found assembler: /Users/mike/gnuarmemb/bin/arm-none-eabi-gcc -- Cache files will be written to: /Users/mike/Library/Caches/zephyr MCUBoot bootloader key file: /Users/mike/ncs/bootloader/mcuboot/root-rsa-2048.pem -- Configuring done -- Generating done -- Build files have been written to: /Users/mike/ncs/nrf/applications/asset_tracker/build/mcuboot === child image mcuboot - end === CMake Warning at /Users/mike/ncs/nrf/cmake/mcuboot.cmake:115 (message): --------------------------------------------------------- --- WARNING: Using default MCUBoot key, it should not --- --- be used for production. --- --------------------------------------------------------- Call Stack (most recent call first): /Users/mike/ncs/bootloader/mcuboot/zephyr/CMakeLists.txt:1 (include) CMake Warning at /Users/mike/ncs/zephyr/CMakeLists.txt:1379 (message): __ASSERT() statements are globally ENABLED -- Configuring done -- Generating done -- Build files have been written to: /Users/mike/ncs/nrf/applications/asset_tracker/build -- west build: building application [1/260] Preparing syscall dependency handling [11/260] Performing build step for 'mcuboot_subimage' [1/239] Preparing syscall dependency handling [234/239] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 37624 B 48 KB 76.55% SRAM: 22576 B 64 KB 34.45% IDT_LIST: 88 B 2 KB 4.30% [239/239] Linking C executable zephyr/zephyr.elf [17/260] Performing build step for 'spm_subimage' [1/193] Preparing syscall dependency handling [188/193] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 32256 B 48 KB 65.62% SRAM: 5520 B 64 KB 8.42% IDT_LIST: 40 B 2 KB 1.95% [193/193] Linking C executable zephyr/zephyr.elf [250/260] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 210912 B 437760 B 48.18% SRAM: 77848 B 128 KB 59.39% IDT_LIST: 152 B 2 KB 7.42% [260/260] Generating zephyr/merged.hex mike@Mikes-MacBook-Pro-10-1 asset_tracker % ls -al total 104 drwxr-xr-x 16 mike staff 512 Oct 6 17:34 . drwxr-xr-x 6 mike staff 192 Oct 5 16:44 .. -rw-r--r-- 1 mike staff 1182 Oct 5 16:44 CMakeLists.txt -rw-r--r-- 1 mike staff 11472 Oct 5 16:44 Kconfig -rw-r--r-- 1 mike staff 10453 Oct 5 16:44 README.rst drwxr-xr-x 20 mike staff 640 Oct 6 17:35 build drwxr-xr-x 9 mike staff 288 Oct 5 18:13 build_nrf52840dongle_nrf52840 drwxr-xr-x 9 mike staff 288 Oct 6 17:05 build_nrf9160dk_nrf9160ns drwxr-xr-x 3 mike staff 96 Oct 5 16:44 configuration -rw-r--r-- 1 mike staff 919 Oct 5 16:44 lwm2m_carrier_overlay.conf -rw-r--r-- 1 mike staff 2490 Oct 5 16:44 prj.conf -rw-r--r-- 1 mike staff 2110 Oct 5 16:44 prj_qemu_x86.conf -rw-r--r-- 1 mike staff 3065 Oct 5 16:44 prj_thingy91_nrf9160ns.conf -rw-r--r-- 1 mike staff 214 Oct 5 16:44 sample.yaml -rw-r--r-- 1 mike staff 228 Oct 5 16:44 spm.conf drwxr-xr-x 11 mike staff 352 Oct 5 16:44 src mike@Mikes-MacBook-Pro-10-1 asset_tracker % cd build_nrf9160dk_nrf9160ns mike@Mikes-MacBook-Pro-10-1 build_nrf9160dk_nrf9160ns % ls -al total 40 drwxr-xr-x 9 mike staff 288 Oct 6 17:05 . drwxr-xr-x 16 mike staff 512 Oct 6 17:34 .. -rw-r--r-- 1 mike staff 6360 Oct 6 17:05 CMakeCache.txt drwxr-xr-x 3 mike staff 96 Oct 6 16:54 CMakeFiles drwxr-xr-x 6 mike staff 192 Oct 6 16:54 Kconfig -rw-r--r-- 1 mike staff 3883 Oct 6 17:05 asset_tracker.emProject drwxr-xr-x 9 mike staff 288 Oct 6 16:54 zephyr -rw-r--r-- 1 mike staff 3735 Oct 6 17:05 zephyr_modules.txt -rw-r--r-- 1 mike staff 57 Oct 6 17:05 zephyr_settings.txt mike@Mikes-MacBook-Pro-10-1 build_nrf9160dk_nrf9160ns %