Hello!
I’ve been going through the documentation provided to set up the nRF9160 on Windows and test using the Blinky, Button, or GPS functionalities. I was able to do all the steps successfully from the step of Run Setup, Init the repo, build the sample, Run Newtmgr, up to Load Serial Monitor and Bootloader.
After I run the Zephyr Tools: Load Via Bootloader and Monitor, the device gets reset but nothing gets executed and the LED doesn’t blink. It only shows me the following in the terminal:
Connected to COM3!
FYI, this is what I get when building the Blinky application:
`> Executing task: west build -b thingy91_nrf9160_ns <
[0/18] Performing build step for 'spm_subimage'
ninja: no work to do.
[1/5] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
Terminal will be reused by tasks, press any key to close it.
> Executing task: west build -b thingy91_nrf9160_ns <
[0/18] Performing build step for 'spm_subimage'
ninja: no work to do.
[1/5] Performing build step for 'mcuboot_subimage'
ninja: no work to do.
Terminal will be reused by tasks, press any key to close it.
> Executing task: west build -b thingy91_nrf9160_ns <
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:13 (find_package)
-- Application: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky
-- Using NCS Toolchain 1.9.1 for building. (C:/Users/Taz/ncs/v1.9.1/toolchain/cmake)
-- Zephyr version: 2.6.99 (C:/Users/Taz/Desktop/Init_repo_5/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160_ns
-- Cache files will be written to: C:/Users/Taz/Desktop/Init_repo_5/zephyr/.cache
-- Found dtc: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Taz/ncs/v1.9.1/toolchain/opt)
-- Found BOARD.dts: C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns.dts
-- Generated zephyr.dts: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/zephyr/dts.cmake
Parsing C:/Users/Taz/Desktop/Init_repo_5/zephyr/Kconfig
Loaded configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns_defconfig'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/prj.conf'
Configuration saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/zephyr/.config'
Kconfig header saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/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: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
Changed board to secure thingy91_nrf9160 (NOT NS)
=== child image spm - begin ===
Including boilerplate (Zephyr base): C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
-- Application: C:/Users/Taz/Desktop/Init_repo_5/nrf/samples/spm
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:8 (find_package)
-- Using NCS Toolchain 1.9.1 for building. (C:/Users/Taz/ncs/v1.9.1/toolchain/cmake)
-- Zephyr version: 2.6.99 (C:/Users/Taz/Desktop/Init_repo_5/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160
-- Cache files will be written to: C:/Users/Taz/Desktop/Init_repo_5/zephyr/.cache
-- Found dtc: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Taz/ncs/v1.9.1/toolchain/opt)
-- Found BOARD.dts: C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
-- Found devicetree overlay: C:/Users/Taz/Desktop/Init_repo_5/nrf/samples/spm/boards/thingy91_nrf9160.overlay
-- Generated zephyr.dts: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/dts.cmake
Parsing C:/Users/Taz/Desktop/Init_repo_5/zephyr/Kconfig
Loaded configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/samples/spm/prj.conf'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm/zephyr/.config'
Kconfig header saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/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: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
CMake Warning (dev) at C:/Users/Taz/Desktop/Init_repo_5/nrfxlib/nrf_security/cmake/extensions.cmake:652:
Syntax Warning in cmake code at column 32
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
C:/Users/Taz/Desktop/Init_repo_5/nrfxlib/nrf_security/CMakeLists.txt:185 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at C:/Users/Taz/Desktop/Init_repo_5/zephyr/CMakeLists.txt:1612 (message):
__ASSERT() statements are globally ENABLED
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/spm
=== child image spm - end ===
Changed board to secure thingy91_nrf9160 (NOT NS)
=== child image mcuboot - begin ===
Including boilerplate (Zephyr base): C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at C:/Users/Taz/Desktop/Init_repo_5/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
The OLD behavior for policy CMP0079 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
-- Application: C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/boot/zephyr
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/Taz/Desktop/Init_repo_5/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:44 (find_package)
-- Using NCS Toolchain 1.9.1 for building. (C:/Users/Taz/ncs/v1.9.1/toolchain/cmake)
-- Zephyr version: 2.6.99 (C:/Users/Taz/Desktop/Init_repo_5/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160
-- Cache files will be written to: C:/Users/Taz/Desktop/Init_repo_5/zephyr/.cache
-- Found dtc: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Taz/ncs/v1.9.1/toolchain/opt)
-- Found BOARD.dts: C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
-- Found devicetree overlay: C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot/zephyr/dts.cmake
Parsing C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf9160.conf'
Merged configuration 'C:/Users/Taz/Desktop/Init_repo_5/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot/zephyr/.config'
Kconfig header saved to 'C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/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: C:/Users/Taz/ncs/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
MCUBoot bootloader key file: C:/Users/Taz/Desktop/Init_repo_5/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build/mcuboot
=== child image mcuboot - end ===
CMake Warning at C:/Users/Taz/Desktop/Init_repo_5/nrf/modules/mcuboot/CMakeLists.txt:204 (message):
---------------------------------------------------------
--- WARNING: Using default MCUBoot key, it should not ---
--- be used for production. ---
---------------------------------------------------------
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
Partition 'spm' is not included in the dynamic resolving since it is statically defined.
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Taz/Desktop/Init_repo_5/nfed/samples/blinky/build
-- west build: building application
[9/190] Performing build step for 'spm_subimage'
[55/219] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[56/219] Generating include/generated/driver-validation.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[212/219] Linking C executable zephyr\zephyr_prebuilt.elf
[215/219] Generating dev_handles.c
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_handles.py:46: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[219/219] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 48640 B 48 KB 98.96%
SRAM: 11920 B 64 KB 18.19%
IDT_LIST: 0 GB 2 KB 0.00%
[13/190] Generating include/generated/driver-validation.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[14/190] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[15/190] Performing build step for 'mcuboot_subimage'
[3/259] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[4/259] Generating include/generated/driver-validation.h
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[252/259] Linking C executable zephyr\zephyr_prebuilt.elf
[255/259] Generating dev_handles.c
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_handles.py:46: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[259/259] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 39496 B 48 KB 80.35%
SRAM: 26952 B 178968 B 15.06%
IDT_LIST: 0 GB 2 KB 0.00%
[175/190] Linking C executable zephyr\zephyr_prebuilt.elf
[178/190] Generating dev_handles.c
C:/Users/Taz/Desktop/Init_repo_5/zephyr/scripts/gen_handles.py:46: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
[182/190] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 33884 B 380416 B 8.91%
SRAM: 6792 B 178968 B 3.80%
IDT_LIST: 0 GB 2 KB 0.00%
[190/190] Generating zephyr/merged.hex
Terminal will be reused by tasks, press any key to close it.`
- Would anyone please provide an insight on how to get the application to execute something. In the case of Blinky, It supposed to blink an LED forever
Much appreciated,
Khalid