I currently try to build some firmware for the upcoming feather with nRF9161.

Therefore I used
https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers/tree/v2.6.x
and
https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers/tree/v2.7.x

The sample “nfed/samples/at_client” builds, but only if the BOOTLOADER_MCUBOOT is disabled.

I used (2.6.1):
west build -b circuitdojo_feather_nrf9161_ns – -DCONFIG_BOOTLOADER_MCUBOOT=y
and (2.7.0)
west build -b circuitdojo_feather_nrf9161/nrf9161/ns –sysbuild

(don’t forget the delete the build-folder when changing. The – may be copied not as two -, then edit that into two ‘-’.)

The first warning/error I get with ncs 2.6.1 is

"CMake Warning at /home/achim/repos/zephyr/feather/zephyr/CMakeLists.txt:862 (message):
  No SOURCES given to Zephyr library:
  ..__nfed__boards__arm__circuitdojo_feather_nrf9161

  Excluding target from build.

CMake Warning at /home/achim/repos/zephyr/feather/zephyr/CMakeLists.txt:862 (message):
  No SOURCES given to Zephyr library: drivers__spi

  Excluding target from build.
"

and on

" Linking C executable zephyr/zephyr_pre0.elf"

a couple of undefined references.

"/home/achim/repos/zephyr/feather/zephyr/drivers/mfd/mfd_npm1300.c:89: undefined reference to `k_work_submit'
/home/achim/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/mfd/libdrivers__mfd.a(mfd_npm1300.c.obj):(.rodata.config0+0x0): undefined reference to `__device_dts_ord_92'
collect2: error: ld returned 1 exit status"

The same works on Jared’s “machine”, but I’m struggling to see the issue on my “machine”.

Therefore, it would be really great, if someone could spend an hour (or so) to update to the latest nfed (2.6.1 or 2.7.0) and try to build the “at_client” with mcuboot to see, if that works on your machine (as on Jared’s) or fails as well (as on my machine).

    Just some additional infos:

    If I use Download the Sources into an available zephyr workspace this approach with

    west init --mr v2.6.x -m https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git
    west update

    I’m able to build the “nfed/samples/at_client” for the nRF9160 with mcuboot, but it fails for the nRF9161 with the above error “NO SOURCES …”. That error isn’t shown for the nRF9160.

      After some more tests, I copied the
      “bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf” to
      “bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9161.conf” in the v2.6.x (NCS 2.6.1) branch.

      It builds, the device is up and running!

      Not sure, why my installation is missing that file. Maybe it’s provided by other paths and means.

      @AchimKraus great detective work!

      Sorry that was an oversight on my end. 😥

      You can also add that to the child_image/mcuboot.conf overlay in 2.6.x or the mcuboot specific sysbuild overlay file(sysbuild/mcuboot.conf) in your app folder for 2.7.x and beyond.

      # Disable Zephyr console
      CONFIG_CONSOLE=n
      
      # Multithreading
      CONFIG_MULTITHREADING=y
      
      # MCUBoot settings
      CONFIG_BOOT_MAX_IMG_SECTORS=256

      As more someone works, as higher the probability gets, that a small piece is missing.
      I enjoyed to be among the first testers :-).

      Terms and Conditions | Privacy Policy