Hi all,

I’m trying to build the tracker example from the nrf9160-feather-examples-and-drivers repository on my sparkfun nrf9160 thing plus. I’m using the Zephyr tools VS code plugin.

I’ve had some difficulty getting the toolchain set up correctly to work with the example - having tried both the guide on the Sparkfun listing instructing you to install the NCS 1.5.x toolchain, and simply following the jaredwolff documentation from a clean setup.

The error i’m receiving is:
`warning: Experimental symbol NET_SOCKETS_SOCKOPT_TLS is enabled.

warning: Experimental symbol NET_SOCKETS_ENABLE_DTLS is enabled.

warning: Experimental symbol NET_SOCKETS_OFFLOAD is enabled.

/Users/xx/GitHub_src/test/nfed/samples/tracker/boards/circuitdojo_feather_nrf9160_ns.conf:16: warning: attempt to assign the value ‘y’ to the undefined symbol PM_EXTERNAL_FLASH

/Users/xx/GitHub_src/test/nfed/samples/tracker/boards/circuitdojo_feather_nrf9160_ns.conf:17: warning: attempt to assign the value ‘“W25Q32JV”’ to the undefined symbol PM_EXTERNAL_FLASH_DEV_NAME

/Users/xx/GitHub_src/test/nfed/samples/tracker/boards/circuitdojo_feather_nrf9160_ns.conf:19: warning: attempt to assign the value ‘0×400000’ to the undefined symbol PM_EXTERNAL_FLASH_SIZE
Parsing /Users/xx/GitHub_src/test/nfed/samples/tracker/Kconfig
Loaded configuration ‘/Users/xx/GitHub_src/test/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig’
Merged configuration ‘/Users/xx/GitHub_src/test/nfed/samples/tracker/conf/prj.conf’
Merged configuration ‘/Users/xx/GitHub_src/test/nfed/samples/tracker/conf/backends/golioth.conf’
Merged configuration ‘/Users/xx/GitHub_src/test/nfed/samples/tracker/conf/debug.conf’
Merged configuration ‘/Users/xx/GitHub_src/test/nfed/samples/tracker/conf/version.conf’
Merged configuration ‘/Users/xx/GitHub_src/test/nfed/samples/tracker/boards/circuitdojo_feather_nrf9160_ns.conf’

error: Aborting due to Kconfig warnings

CMake Error at /Users/xx/GitHub_src/test/zephyr/cmake/kconfig.cmake:272 (message):
command failed with return code: 1
Call Stack (most recent call first):
/Users/xx/GitHub_src/test/zephyr/cmake/app/boilerplate.cmake:544 (include)
/Users/xx/GitHub_src/test/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/xx/GitHub_src/test/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:79 (find_package)`

My understanding from other posts is that these commands are deprecated in newer versions of the NCS toolchain. What is the correct method to configure my toolchain (be it with an NCS toolchain or other), as I can’t find it covered in the Zephyr tools VS code information. Do the kconfs in the board conf file need updating for the newer toolchain versions (PM_EXTERNAL_FLASH, PM_EXTERNAL_FLASH_DEV_NAME, PM_EXTERNAL_FLASH_SIZE)?

Many thanks

    Thanks Jared, I have also followed the guide above.

    Having tried the v1.7.x branch and pointing it to my gcc-arm-none-eabi folder it builds fine. Would there be any clear steps I have done incorrectly that is stopping the newer v1.9.x branch from working with this example?

      Having removed the offending kconfigs in the board conf file, the build proceeds until it throws this error:

      ’In file included from /Users/xx/GitHub_src/latest15/zephyr/include/storage/flash_map.h:260,
      from /Users/xx/GitHub_src/test/zephyr/include/fs/littlefs.h:12,
      from /Users/xx/GitHub_src/test/nfed/samples/tracker/src/storage/app_storage.c:13:
      /Users/Guy.Turner/GitHub_src/test/nrf/include/flash_map_pm.h:30:22: error: ‘PM_external_flash_ID’ undeclared here (not in a function)
      30 | #define PM_ID(label) PM##label##ID’

        Ahh ok. Looks like there is some incompatibilities with the code in 1.9.x. Best to stick with 1.7.x.

          Terms and Conditions | Privacy Policy