When I try to build assett_tracker it fails with the following error. What could be the problem?

C:\Users\redacted\ncs\v1.4.1\nrf\applications\asset_tracker>west build -b circuitdojo_feather_nrf9160ns
[0/248] Performing build step for ‘spm_subimage’
[1/136] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
C:\Users\redacted\ncs\v1.4.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.4.0-ncs2 -DEXT_API_MAGIC=0×281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0×281ee6de,0×8fcebb4c,23298 -DKERNEL -DMBEDTLS_CONFIG_FILE=\“nrf-config.h\” -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -DPROGRAM_START -DZEPHYR__=1 -IC:/Users/redacted/ncs/v1.4.1/zephyr/kernel/include -IC:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/include -IC:/Users/redacted/ncs/v1.4.1/zephyr/include -Izephyr/include/generated -IC:/Users/redacted/ncs/v1.4.1/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/Users/redacted/ncs/v1.4.1/nrf/include -IC:/Users/redacted/ncs/v1.4.1/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -IC:/Users/redacted/ncs/v1.4.1/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -Imodules/nrfxlib/nrf_security/include -Imodules/nrfxlib/nrf_security/include/mbedtls_generated -IC:/Users/redacted/ncs/v1.4.1/mbedtls/include -IC:/Users/redacted/ncs/v1.4.1/mbedtls/include/mbedtls -IC:/Users/redacted/ncs/v1.4.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/redacted/ncs/v1.4.1/modules/hal/nordic/nrfx -IC:/Users/redacted/ncs/v1.4.1/modules/hal/nordic/nrfx/drivers/include -IC:/Users/redacted/ncs/v1.4.1/modules/hal/nordic/nrfx/mdk -IC:/Users/redacted/ncs/v1.4.1/modules/hal/nordic/. -IC:/Users/redacted/ncs/v1.4.1/nrf/samples/spm/kernel/include -isystem C:/Users/redacted/ncs/v1.4.1/zephyr/lib/libc/minimal/include -isystem c:/users/redacted/ncs/v1.4.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/users/redacted/ncs/v1.4.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -isystem C:/Users/redacted/ncs/v1.4.1/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacros C:/Users/redacted/ncs/v1.4.1/nrf/applications/asset_tracker/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -imacros C:/Users/redacted/ncs/v1.4.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/redacted/ncs/v1.4.1/nrf/samples/spm=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/redacted/ncs/v1.4.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/redacted/ncs/v1.4.1=WEST_TOPDIR -ffunction-sections -fdata-sections -mcmse -std=c99 -nostdinc -MD -MT zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -MF zephyr\CMakeFiles\offsets.dir\arch\arm\core\offsets\offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets.c
In file included from C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets_aarch32.c:30,
from C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets.c:12:
C:/Users/redacted/ncs/v1.4.1/zephyr/kernel/include/kernel_offsets.h: In function ‘OffsetAbsSyms’:
C:/Users/redacted/ncs/v1.4.1/zephyr/kernel/include/kernel_offsets.h:26:32: error: expected ‘:’ or ‘)’ before ‘;’ token
26 | GEN_OFFSET_SYM(
cpu_t, current);
| ^
C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets.c:15:1: error: expected declaration or statement at end of input
15 | GEN_ABS_SYM_END
| ~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a
cmd.exe /C “cd /D C:\Users\redacted\ncs\v1.4.1\nrf\applications\asset_tracker\build\spm && C:\Users\redacted\ncs\v1.4.1\toolchain\opt\bin\cmake.exe –build . –”
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: ‘C:\Users\redacted\ncs\v1.4.1\toolchain\opt\bin\cmake.EXE’ –build ‘C:\Users\redacted\ncs\v1.4.1\nrf\applications\asset_tracker\build’

C:\Users\redacted\ncs\v1.4.1\nrf\applications\asset_tracker>

    Paddy asset tracker code doesn’t 100% work with the nRF9160 Feather. I’ll be working on some compatible code and be placing it in NFED this week 🤞

    Well I tried to build agps and get this error:

    In file included from C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets_aarch32.c:30,
    from C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets.c:12:
    C:/Users/redacted/ncs/v1.4.1/zephyr/kernel/include/kernel_offsets.h: In function ‘OffsetAbsSyms’:
    C:/Users/redacted/ncs/v1.4.1/zephyr/kernel/include/kernel_offsets.h:26:32: error: expected ‘:’ or ‘)’ before ‘;’ token
    26 | GEN_OFFSET_SYM(
    cpu_t, current);
    | ^
    C:/Users/redacted/ncs/v1.4.1/zephyr/arch/arm/core/offsets/offsets.c:15:1: error: expected declaration or statement at end of input
    15 | GEN_ABS_SYM_END
    | ~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    [6/205] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a
    cmd.exe /C “cd /D C:\Users\redacted\ncs\v1.4.1\nrf\samples\nrf9160\agps\build\spm && C:\Users\redacted\ncs\v1.4.1\toolchain\opt\bin\cmake.exe –build . –”
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: ‘C:\Users\redacted\ncs\v1.4.1\toolchain\opt\bin\cmake.EXE’ –build ‘C:\Users\redacted\ncs\v1.4.1\nrf\samples\nrf9160\agps\build’

    C:\Users\redacted\ncs\v1.4.1\nrf\samples\nrf9160\agps>

      Paddy hmm, there was a build error with the AGPS example that I just fixed but this isn’t it. Can you remove your build folder or add -p to west build -b circuitdojo_feather_nrf9160ns? Have you been able to build other samples without issue?

      a year later

      Hi Jared

      I’m trying to get the asset tracker going but its failing on the SUPL library being missing. I’ve tried to get it from Nordic but the forum there is littered with people being denied it and something about their “system” not working properly.

      Is there a way to exclude this this from the build easily. I don’t mind if it has regular GPS (or no GPS) until I get the library sorted from Nordic.

      thanks
      Marshall

      Oh - I found this in the prj.conf file.
      `# AGPS
      '# To use AGPS, a source of assistance data must be selected. By default, SUPL
      '# is selected. However, due to licensing, the SUPL library must be manually
      '# downloaded and configured according to the instructions found in the SUPL
      '# client library documentation in NCS.
      '#CONFIG_AGPS=y
      '#CONFIG_AGPS_SRC_SUPL=y

      I’m hoping that will fix it!

      Yup disabling CONFIG_AGPS should do the trick!

      8 days later

      Hi Jared - I have a nrf9160 Thing Plus as well as your original ones. There is a slight difference with the interrupts on the LIS2H between the two. and the sensor library is expecting two interrupts from the device, Is there an easy way around this. I’m not getting any motion events on the tracker, as the interrupt is not wired….

      Additionally, I’m trying to bypass using your Pyrinas server and feed the data to my own MQTT server with a node-red backend. I have it publishing and subscribing using CBOR no problems, but I’m struggling with the FOTA part, and in particular how to “trick” the nrf9160 into decoding the ota pub string.

      I’m unclear what has to be in the payload, and the format it has to be in. - when I step through the QCBOR code its a black hole.

      From what I can tell, it just needed 12 bytes of raw data, including the 4 bytes for the version and an eight byte hash.

      It’s not working though so if you are able to let me know what the entire byte string is and the format that is received at the nrf9160 that would be a big help

      Here is what I have so far (that doesn’t work)
      var hash = [0×31,0×32,0×33,0×34,0×35,0×36,0×37,0×38];
      var manifest = {};
      manifest.version = {};
      manifest.version.major = 0×01;
      manifest.version.minor = 0×02
      manifest.version.patch = 0×03
      manifest.version.commit = 0×04
      manifest.version.hash = new Array(8);
      manifest.version.hash = hash;
      manifest.host = “somewhere.com”;
      manifest.file = “my_app.bin”;
      manifest.force = false,
      msg.payload = manifest;

      and this doesn’t work either
      buf_ota = Buffer([161,0,140,1,2,3,4,11,12,13,14,15,16,17,18]);
      msg.payload = buf_ota;

      Thanks for the help

      Regards
      Marshall

      @marshallbrown123 the second interrupt pin, by default, for motion is not connected. You’ll need to jump that pin (JMP3) for things to work.

      Terms and Conditions | Privacy Policy