Hi!

I’m trying to run the battery sample on my feather v5, but it just gives gibberish and then hangs. Through a lot of commenting out of stuff and adding printk everywhere, I believe the issue comes from ddp->adc = device_get_binding(iocp->label); on line 108 in battery.c, which looks like it’s just hanging forever. Any clues as to what I’m doing wrong?

Full output log:

Executing task: zephyr-tools --port /dev/tty.usbserial-110 --follow --save 

Connecting..
Connected to /dev/tty.usbserial-110!
���]u_]���_׷O�������������ݽ���}���-U����ݽ���]���U���]W����w]�}�M�U_u}��w�]]���w�������wU]����Ww����w��]�UU]�U]��w�U�U���w��]���}WU]���]WU]���]WU}�����]]���]������]wU]�����u]��W��]]U���wu}�����uu}���w����}u_U���_׷O������������������}���-�Օ�߽���]���U���}W����w]�}�M�U_u}��w�]]���w�������wU}����Ww����w��U��U}�U]��w�U�U���w��]���]WU]���}WU]���]WU]�����}]���]������}Wu]�����u]��w��}]u���Wu]�����uw}���wu��ս]u]���_׷O������������������]���-oݕ��ݝ���]���U���]W����W]�}�m�U_U}��w�}]���w�������wU}����Ww����w��]�UU]�U]��W�U�U���w��]���]Wu]���]WU]���]Wu]�����]]���]������]wU]�����U]��W��]]u���Wu}�����uu}���Wu����]u]���_׷O����������������w�]���-U����ݟ]w�]���U���}W����W]�}�M�U_U}��w�]]���w�������wU]����WW����w��]�Uu]�U]��w�U�U���w��]���]Wu]���WU]���]WU}�����]]���}������}Wu]�����U]��W��]_U���wu]�����uu}���W����]u_]���_׷O�������u�_��������}���-�յ�ݽ���]���u���}W����W]�}�M�U_U}��w�]]���w�������wu}����Ww����w��]�UU}�U]��w�U�U���w��]���}WU]���]WU]���}WU}�����]]���]������]wU}�����U]��W��]]U���wU}�����UU}���W����]u_]���_׷O������������������}���-����}ݽ���]���U���]W����w]�}�M�U_U}��w�]]���w�������wu}����WW����w��]�UU}�U}��w�u�U���w��]���]WU]���]WU]���]WU}�����]]���]������}WU]�����u]��w��]]U���wU}�����UU}�������u_]���_׷O�������u�_��������}���-�����ݿ]W�]���U���]w����W]�]�M�U_U}��w�]]���w�������wU}����WW����w�]U��U}�U]��W�u�U���wߕ]���]Wu]���]WU]���]WU]�����]]���}������}WU]���w�U]��w��]]U���wU]�����UU}�������]u_]���_��O������������������}���-U����ݽ���]���u���}W����w]�}�M�U_u}��w�}]���w�������WU]����Ww����w��]�Uu]�U]��w�u�U���w��]���]WU]���]Wu]���]WU}�����]]���}������]wU}�����U]��w��]]U���wu]�����uu}���՝}u_U���_׷O������������������}���-U����ݽ���]���U���}W����w]�}�M�U_U}��w�]]���w�������Wu]����WW����w��]�UU}�W]��W�u�U���w��]���]WU]���}Wu]���}WU]�����}]���]������]wU}�����u]��w��]]U���wu}�����UU}�����ս}u_]���_׷O������������������}���-�����ݿ]W�]���w�]��}W����w]�}�M�U_u}��w�]]���w�������wU}����WW����w��]�UU]�U]��w�u�U���w�]U���}WU]���]WU]���]WU}�����]]���]�]]���}Wu]�����U]��w��}]U���wU}�����UU}������]u_]���_��O������������������]���-U����ݿ]W�]���U���]W����w]�]�M�U_U}��w�}]���w�������wU]����WW����w��]�Uu]�U]��w�U�U���w�]U���]WU]���]WU]���]WU}�����]]���]�}]���]wU}�����u]��W��]]u���wU}�����UU}���ս]u_]���_׷O������������������]���-U����ݝ���]���U���}w����W]�]�m�U_U}��w�]]���w�������WU}����WW����w��]�UU]�U]��w�u�U���w�]U���}Wu]���}WU]���]Wu}�����}]���}������]wU}�����U]��W��]]u���WU}�����UU}�������]u_]���_׷O������������������]���-����]ݽ���]���u���}w����W_�}�M�U_U}��w�]_���w�������wU}����Ww����w���Uu]�U]��w�u�U���w��]���}WU]���]Wu]���]WU}�����]]���]������]wU}�����u]��w��]]U���wU}�����uu}�����՝}u_]���_׷O������������������}���-����}ݽ���]���u���]W����w]�}�M�U_U}��w�]]���w�������wU}����WW����w�]U��U]�U]��w�U�U���w��]���WU]���}Wu]���}WU}�����]]���}������]wU}�����U]��w��}]u���wu]�����uu}���w����]u_]���_��O������������������}���/����_ݽ���_���u���}W����w]�}�m�U_U}��w�]]���w�������WU]����WW����w��]�UU}�U]��w�u�U���w��]���}WU]���]WU]���]Wu]�����}]���}������]wu}�w���u]��W��}]U���wu]�����UU}�����]u_U���_��O������������������]���-�����ݟ]W�]���U���}w����w]�}�M�U_w}��w�}]���w�������Wu]����Ww����w��]�UU]�U]��w�U�U���w��]���]WU]���}Wu]���}Wu}�����]]���]������}Wu�����u]��W��]]U���WU}�����uu}������]u_]���_׷O������������������]���-w���]����]����U���]W����w]�}�M�U_U}��w�]]���w�������wU]����WW����w��]�Uu}�U]��W�u�U���w��]���]WU]���]WU]���]Wu}�����]���}������]wU}�����U]��w��]]u���wu]�����uu}����՝}u_]���_׷O������������������}���-�����ݿ]w�]���u���}Wu���w]�]�m�U_u}��w�]]���w�������wU}����WW����w��]�Uu}�U_��w�U�U���w��]���}WU]���]WU_���}Wu]�����]]���}������}WU}�����U]��w��}]U���WU}�����uu}�������]u_]���_��O�������u�_��������]���-w�������]����w���]w����w]�}�m�U_u}��w�]]���w�������WU}����Ww����w�]U��u]�U]��w�U�U���w��]���]Wu]���]Wu]���}WU]�����}]���}������}Wu]�����u]��w��}]U���wU}�����Uu}�����]u_]���_��O������������������}���-u]_]�����U����U���]W����w]�}�M�U_U}��w�}]���w�]]����wU}����Ww����w��]�UU]�U]��W�u�U���w��]���]WU]���]WU]���Wu}�����]]���]������]wU}�����U]��w��]]u���WU]�����Uu}���ս}u]���_׷O����ݵ������������]���-w�������]����U���}W����W]�}�]�U_U}��w�]]���w�������wU}����WW����w��]�UU�U]��w�u�U���w��]���]Wu]���]Wu]���}WU]�����}]���]������}Wu]�����U]��w��}]U���WU]�����Uu}���wu}��ս]u]���_��O������������������}���-u����ݿ]W�]���U���]W����w]�}�M�U_U}��w�]]���w�������Wu}����WW����w��]�Uu]�U]��w�u�U���w��]���]Wu_���]Wu]���}WU}�����]]���}�]]���}Wu]�����U]��w��]]U���wu}�����UU}�������]u_]���_׷O������������������}���-Oݵ��ݝ���]���U���}W����W]�}�M�U_U}��w�]]���w�������wU]����Ww����w��]�UU}�U]��w�u�U���w��]���}W�]���]Wu]���}Wu]�����]]���}������]wU}�����u]��W��]]u���wU]�������]�����ս}u_]���]��O������������������}���-���_�ݽ���]���u���]w����w]�}�m�U_U}��w�]]���w�������WU]����Ww����w��]�Uu}�U]��W�U�U���w��]���}Wu]���]WU]���]Wu]�����}]���]������}Wu]�����U]��w��}]u���wu]�����uU}������]u_]���_׷O������������������}���-�����ݟ]W�]���u���}W����W]�]�M�U_U}��w�]���w�������Wu]����WW����w��]�Uu}�U]��W�U�U���w��]���}Wu]���]WU]���}Wu]�����]]���]������}wU}�����u]��W��]]u���wu]�����Uu}�������}u]���_��O������������������}���-�����ݿ]w�]���U���}W����W]�_�M�U_u}��w�}]���w�������wU]����Ww����w��]�Uu}�U]��w�U�U���w��]���}Wu]���]WU]���]WU]�����}]���]������]wU}�����U]��W��]]U���wU}�����uu}������}u]���_׷O������������������}���-�����ݟ]W�]���u���}W����w]�}�M�U_U}��w�]]���w�������Wu]����WW����w��]�UU}�U]��U�u�U���w��]���]WU]���}WU]���]WU}�����]]���]������]wU}�����U]��w��]]U���wU}�����UU}�������]u_]���_׷O������������������]���-����]ݽ���]���u���}W����w]�]�m�U_U}��w�]]���w�������wU}����Ww����w��]�UU]�U]��W�u�U���w��]���]WU]���]WU]���]WU]�����]]���]������}Wu]�����u]��w��]]U���WU}�����UU}������]u_]���_��O�������������ݽ���}���-U����ݝ���]���u���}W����w]�]�m�U_u}��w�]]���w�������wu}����WW����w���Uu}�U]��W�u�U���w��]���]WU]���]WU]���]WU}�����}]���}������]wU}�����u]��W��}]U���wU}�����UU}�������]u_]���_׷O������������������}���-U����ݽ���]���W�]��]w����w]�}�m�U_U}��w�]]���w�������wU}����WW����w��]�Uu]�U]��U�U�U���w��]���]WU]���]Wu]���WU]�����]]���]������]wU}�����U]��w��]]u���WU]�����UU}����ս]u]���_��O������������������]���-u����ݟ]W�]���u���]w����w]�]�-�U_u}��w�]]���w�������WU]����Ww����w�]U��u}�U]��W�u�U���w��]���]WU]���}Wu]���}WU]�����}]���}������}Wu]�����u]��w��]]U���wu}�����uU}���Wu}��]}w}]�����}]���}������]WU}�����U]��w��}]���]w]]������]���_WU]����wU}����W]u�������uw��U]�����u�����u

Full build log:

 *  Executing task: west build -b circuitdojo_feather_nrf9160_ns -p 

-- west build: making build dir /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery
-- Zephyr version: 2.7.99 (/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: /Users/jeppe/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.9") found components: Interpreter 
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160_ns
-- Cache files will be written to: /Users/jeppe/Library/Caches/zephyr
-- Found host-tools: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found BOARD.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
-- Generated zephyr.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/dts.cmake
Parsing /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/Kconfig
Loaded configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/prj.conf'
Configuration saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/.config'
Kconfig header saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)

=== child image spm -  begin ===
loading initial cache file /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/child_image_preload.cmake
Including boilerplate (Zephyr base): /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/samples/spm
-- Zephyr version: 2.7.99 (/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: /Users/jeppe/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.9") found components: Interpreter 
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160
-- Cache files will be written to: /Users/jeppe/Library/Caches/zephyr
-- Found host-tools: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found BOARD.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
-- Generated zephyr.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/dts.cmake
Parsing /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/Kconfig
Loaded configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/samples/spm/prj.conf'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/.config'
Kconfig header saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/CMakeLists.txt:1687 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/spm
=== child image spm -  end ===

Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)

=== child image mcuboot -  begin ===
loading initial cache file /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/child_image_preload.cmake
Including boilerplate (Zephyr base): /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.7.99 (/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr), build: v2.7.99-ncs1-1
-- Found Python3: /Users/jeppe/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.9") found components: Interpreter 
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160
-- Cache files will be written to: /Users/jeppe/Library/Caches/zephyr
-- Found host-tools: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.15.1 (/Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
-- Found BOARD.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
-- Found devicetree overlay: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/dts.cmake

warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_UART_CONSOLE.html and/or look up
UART_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.

Parsing /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/.config'
Kconfig header saved to '/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/jeppe/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/modules/mcuboot/CMakeLists.txt:262 (message):
  

        ---------------------------------------------------------
        --- WARNING: Using default MCUBoot key, it should not ---
        --- be used for production.                           ---
        ---------------------------------------------------------
        



Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build
-- west build: building application
[1/202] Preparing syscall dependency handling

[11/202] Performing build step for 'spm_subimage'
[1/265] Preparing syscall dependency handling

[158/265] Building C object zephyr/CMakeFiles/zephyr.dir/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/spm/spm.c.obj
In function 'usel_or_split',
    inlined from 'config_peripheral.constprop' at /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/spm/spm.c:268:6:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/spm/spm.c:231:48: warning: array subscript 128 is above array bounds of 'volatile SPU_PERIPHID_Type[67]' [-Warray-bounds]
  231 |         const uint32_t perm = NRF_SPU->PERIPHID[id].PERM;
In file included from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/modules/hal/nordic/nrfx/mdk/nrf.h:186,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/modules/hal/nordic/nrfx/drivers/nrfx_common.h:41,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/modules/hal/nordic/nrfx/nrfx.h:38,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/soc/arm/nordic_nrf/common/./soc_nrf_common.h:14,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/soc/arm/nordic_nrf/nrf91/soc.h:14,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/arm/aarch32/cortex_m/cmsis.h:17,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/arm/aarch32/mpu/arm_mpu_v8m.h:10,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/arm/aarch32/mpu/arm_mpu.h:18,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/arm/aarch32/arch.h:189,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/cpu.h:19,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/kernel_includes.h:33,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/kernel.h:17,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/zephyr.h:18,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nrf/subsys/spm/spm.c:7:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/modules/hal/nordic/nrfx/mdk/nrf9160.h: In function 'config_peripheral.constprop':
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/modules/hal/nordic/nrfx/mdk/nrf9160.h:821:27: note: while referencing 'PERIPHID'
  821 |   __IOM SPU_PERIPHID_Type PERIPHID[67];         /*!< (@ 0x00000800) Unspecified                                                */
      |                           ^~~~~~~~
[173/265] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
In file included from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[255/265] Linking C executable zephyr/zephyr_pre0.elf

[259/265] Linking C executable zephyr/zephyr_pre1.elf

[265/265] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       65024 B        64 KB     99.22%
            SRAM:       11984 B        32 KB     36.57%
        IDT_LIST:          0 GB         2 KB      0.00%
[17/202] Performing build step for 'mcuboot_subimage'
[1/199] Preparing syscall dependency handling

[103/199] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
In file included from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[189/199] Linking C executable zephyr/zephyr_pre0.elf

[193/199] Linking C executable zephyr/zephyr_pre1.elf

[199/199] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       43920 B        48 KB     89.36%
            SRAM:       23264 B     211736 B     10.99%
        IDT_LIST:          0 GB         2 KB      0.00%
[50/202] Building C object CMakeFiles/app.dir/src/battery.c.obj
In file included from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:19,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/arm/aarch32/arch.h:20,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/arch/cpu.h:19,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/kernel_includes.h:33,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/kernel.h:17,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/zephyr.h:18,
                 from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:12:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/include/generated/devicetree_unfixed.h:1030:52: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1030 | #define DT_N_S_vbatt_P_io_channels_IDX_0_VAL_input 7
      |                                                    ^
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3022:24: note: in expansion of macro 'DT_N_S_vbatt_P_io_channels_IDX_0_VAL_input'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:538:32: note: in expansion of macro 'DT_CAT'
  538 | #define DT_PROP(node_id, prop) DT_CAT(node_id, _P_##prop)
      |                                ^~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree/io-channels.h:274:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  274 |         DT_PHA_BY_IDX(node_id, io_channels, idx, input)
      |         ^~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree/io-channels.h:323:39: note: in expansion of macro 'DT_IO_CHANNELS_INPUT_BY_IDX'
  323 | #define DT_IO_CHANNELS_INPUT(node_id) DT_IO_CHANNELS_INPUT_BY_IDX(node_id, 0)
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:65:17: note: in expansion of macro 'DT_IO_CHANNELS_INPUT'
   65 |                 DT_IO_CHANNELS_INPUT(VBATT),
      |                 ^~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3004:9: note: in expansion of macro 'UTIL_CAT'
 3004 |         UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
      |         ^~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3004:18: note: in expansion of macro 'DT_ROOT'
 3004 |         UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
      |                  ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:129:22: note: in expansion of macro 'DT_PATH_INTERNAL'
  129 | #define DT_PATH(...) DT_PATH_INTERNAL(__VA_ARGS__)
      |                      ^~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:23:15: note: in expansion of macro 'DT_PATH'
   23 | #define VBATT DT_PATH(vbatt)
      |               ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:65:38: note: in expansion of macro 'VBATT'
   65 |                 DT_IO_CHANNELS_INPUT(VBATT),
      |                                      ^~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/build/zephyr/include/generated/devicetree_unfixed.h:1030:52: note: (near initialization for 'divider_config.io_channel.label')
 1030 | #define DT_N_S_vbatt_P_io_channels_IDX_0_VAL_input 7
      |                                                    ^
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3022:24: note: in expansion of macro 'DT_N_S_vbatt_P_io_channels_IDX_0_VAL_input'
 3022 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:538:32: note: in expansion of macro 'DT_CAT'
  538 | #define DT_PROP(node_id, prop) DT_CAT(node_id, _P_##prop)
      |                                ^~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:1083:9: note: in expansion of macro 'DT_PROP'
 1083 |         DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
      |         ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree/io-channels.h:274:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  274 |         DT_PHA_BY_IDX(node_id, io_channels, idx, input)
      |         ^~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree/io-channels.h:323:39: note: in expansion of macro 'DT_IO_CHANNELS_INPUT_BY_IDX'
  323 | #define DT_IO_CHANNELS_INPUT(node_id) DT_IO_CHANNELS_INPUT_BY_IDX(node_id, 0)
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:65:17: note: in expansion of macro 'DT_IO_CHANNELS_INPUT'
   65 |                 DT_IO_CHANNELS_INPUT(VBATT),
      |                 ^~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/sys/util_internal.h:98:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
   98 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
      |                          ^~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3004:9: note: in expansion of macro 'UTIL_CAT'
 3004 |         UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
      |         ^~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:3004:18: note: in expansion of macro 'DT_ROOT'
 3004 |         UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
      |                  ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/include/devicetree.h:129:22: note: in expansion of macro 'DT_PATH_INTERNAL'
  129 | #define DT_PATH(...) DT_PATH_INTERNAL(__VA_ARGS__)
      |                      ^~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:23:15: note: in expansion of macro 'DT_PATH'
   23 | #define VBATT DT_PATH(vbatt)
      |               ^~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/nfed/samples/battery/src/battery.c:65:38: note: in expansion of macro 'VBATT'
   65 |                 DT_IO_CHANNELS_INPUT(VBATT),
      |                                      ^~~~~
[87/202] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
In file included from /Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
  307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  308 |                                                    region_num);
      |                                                    ~~~~~~~~~~~
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
/Users/jeppe/JML-Software-Solutions/smart-well/nrf-board/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
  187 | void arm_core_mpu_configure_dynamic_mpu_regions(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[181/202] Linking C executable zephyr/zephyr_pre0.elf

[185/202] Linking C executable zephyr/zephyr_pre1.elf

[191/202] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       30796 B     425472 B      7.24%
            SRAM:        6624 B     211736 B      3.13%
        IDT_LIST:          0 GB         2 KB      0.00%
[202/202] Generating zephyr/merged.hex
 *  Terminal will be reused by tasks, press any key to close it. 

    Hey JeppeMariagerLam

    I suspect you have an environment problem. Here’s my result on the (now default) 2.2.x branch:

    Executing task: west build -b circuitdojo_feather_nrf9160_ns -p 
    
    -- west build: making build dir /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/jaredwolff/.cache/zephyr
    -- Zephyr version: 3.2.99 (/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: circuitdojo_feather_nrf9160_ns
    -- Found host-tools: zephyr 0.15.1 (/home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
    -- Found toolchain: zephyr 0.15.1 (/home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
    -- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
    -- Found BOARD.dts: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
    -- Generated zephyr.dts: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/dts.cmake
    Parsing /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr/Kconfig
    Loaded configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/prj.conf'
    Configuration saved to '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/.config'
    Kconfig header saved to '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found version "3.10.6") found components: Interpreter 
    Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/boot/zephyr
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/jaredwolff/.cache/zephyr
    -- Zephyr version: 3.2.99 (/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: circuitdojo_feather_nrf9160
    -- Found host-tools: zephyr 0.15.1 (/home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
    -- Found toolchain: zephyr 0.15.1 (/home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
    -- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
    -- Found BOARD.dts: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
    -- Found devicetree overlay: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    MCUBoot bootloader key file: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build
    -- west build: building application
    [1/249] Preparing syscall dependency handling
    
    [21/249] Performing build step for 'mcuboot_subimage'
    [1/202] Preparing syscall dependency handling
    
    [2/202] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr), build: v3.2.99-ncs1
    [192/202] Linking C executable zephyr/zephyr_pre0.elf
    
    [196/202] Linking C executable zephyr/zephyr_pre1.elf
    
    [202/202] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       44304 B        48 KB     90.14%
                 RAM:       24280 B     211736 B     11.47%
            IDT_LIST:          0 GB         2 KB      0.00%
    [37/249] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (/home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/zephyr), build: v3.2.99-ncs1
    [63/249] Generating ../../tfm/CMakeCache.txt
    -- The C compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/jaredwolff/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found version "3.10.6") found components: Interpreter 
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/jaredwolff/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/tfm
    [69/249] Performing build step for 'tfm'
    [1/2] Re-running CMake...
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found version "3.10.6") found components: Interpreter 
    -- Found Python3: /home/jaredwolff/.zephyrtools/env/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/jaredwolff/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/tfm
    [171/171] Linking C static library secure_fw/libtfm_s_veneers.a
    [73/249] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [230/249] Linking C executable zephyr/zephyr_pre0.elf
    
    [234/249] Linking C executable zephyr/zephyr_pre1.elf
    
    [240/249] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       33332 B     441856 B      7.54%
                 RAM:        7312 B     211736 B      3.45%
            IDT_LIST:          0 GB         2 KB      0.00%
    [244/249] Generating ../../zephyr/app_update.bin
    sign the payload
    [245/249] Generating ../../zephyr/app_signed.hex
    sign the payload
    [247/249] Generating ../../zephyr/app_test_update.hex
    sign the payload
    [249/249] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: zephyr-tools -b 
    
    Placing nRF9169 Feather into bootloader mode!
    Done!
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: newtmgr -c vscode-zephyr-tools image upload /home/jaredwolff/Git/nrf9160-feather-examples-and-drivers/nfed/samples/battery/build/zephyr/app_update.bin -r 3 -t 0.25 
    
     81.20 KiB / 81.20 KiB [===============================================================] 100.00% 16.41 KiB/s 4s
    Done
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: newtmgr -c vscode-zephyr-tools reset 
    
    Done
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: zephyr-tools --port /dev/ttyUSB0 --follow --save 
    
    Connecting..
    Connected to /dev/ttyUSB0!
    *** Booting Zephyr OS build v3.2.99-ncs1 ***
    [0:00:00.488]: 3344 mV; 338 pptt
    [0:00:05.559]: 2076 mV; 0 pptt
    [0:00:10.631]: 2730 mV; 0 pptt
    [0:00:15.702]: 4130 mV; 10000 pptt
    [0:00:20.773]: 4234 mV; 10000 pptt
    [0:00:25.843]: 4234 mV; 10000 pptt
    [0:00:30.913]: 1156 mV; 0 pptt
    [0:00:35.983]: 1338 mV; 0 pptt
    [0:00:41.053]: 1706 mV; 0 pptt
    [0:00:46.123]: 2222 mV; 0 pptt
    [0:00:51.194]: 3018 mV; 0 pptt
    [0:00:56.264]: 4238 mV; 10000 pptt

    Make sure that you’re running Version 0.1.31 of Zephyr SDK Tools, updated to the latest branch (v2.2.x) (and Zephyr Tools: Update Dependencies is run) and you delete the build folder (or run Zephyr Tools: Clean) before compiling again.

    a month later

    Hi Jared - just coming back to this as I have some time now. I checked out the 2.2 branch, but there is no code in the battery directory, only config files. Am I missing something? 😅

    JeppeMariagerLam

    The source files are there, just not in that directory. 🙂

    Check here: zephyr/samples/boards/nrf/battery/src

    5 days later

    I am finding the same issue in a project using thingy:91 board.
    As far as I remember, those warnings were not present in former compilations and I haven’t changed any line of code.
    I just made a full repo setup and init full from scratch and it’s still present.

    I am copying the full output here since I believe most of what follows is also related.

    
    [10/338] Performing build step for 'spm_subimage'
    [3/272] Preparing syscall dependency handling
    
    [146/272] Building C object zephyr/CMakeFiles/zephyr.dir/Users/lorenzo/GitDev/T91_dojo_reference/nrf/subsys/spm/spm.c.obj
    In function 'usel_or_split',
        inlined from 'config_peripheral.constprop' at /Users/lorenzo/GitDev/T91_dojo_reference/nrf/subsys/spm/spm.c:268:6:
    /Users/lorenzo/GitDev/T91_dojo_reference/nrf/subsys/spm/spm.c:231:48: warning: array subscript 128 is above array bounds of 'volatile SPU_PERIPHID_Type[67]' [-Warray-bounds]
      231 |         const uint32_t perm = NRF_SPU->PERIPHID[id].PERM;
    In file included from /Users/lorenzo/GitDev/T91_dojo_reference/modules/hal/nordic/nrfx/mdk/nrf.h:186,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/modules/hal/nordic/nrfx/drivers/nrfx_common.h:41,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/modules/hal/nordic/nrfx/nrfx.h:38,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/soc/arm/nordic_nrf/common/./soc_nrf_common.h:14,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/soc/arm/nordic_nrf/nrf91/soc.h:14,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/arch/arm/aarch32/cortex_m/cmsis.h:17,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/arch/arm/aarch32/mpu/arm_mpu_v8m.h:10,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/arch/arm/aarch32/mpu/arm_mpu.h:18,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/arch/arm/aarch32/arch.h:189,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/arch/cpu.h:19,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/kernel_includes.h:33,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/kernel.h:17,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/include/zephyr.h:18,
                     from /Users/lorenzo/GitDev/T91_dojo_reference/nrf/subsys/spm/spm.c:7:
    /Users/lorenzo/GitDev/T91_dojo_reference/modules/hal/nordic/nrfx/mdk/nrf9160.h: In function 'config_peripheral.constprop':
    /Users/lorenzo/GitDev/T91_dojo_reference/modules/hal/nordic/nrfx/mdk/nrf9160.h:821:27: note: while referencing 'PERIPHID'
      821 |   __IOM SPU_PERIPHID_Type PERIPHID[67];         /*!< (@ 0x00000800) Unspecified                                                */
          |                           ^~~~~~~~
    [173/272] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    In file included from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [262/272] Linking C executable zephyr/zephyr_pre0.elf
    
    [266/272] Linking C executable zephyr/zephyr_pre1.elf
    
    [272/272] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       48640 B        48 KB     98.96%
                SRAM:       12128 B        32 KB     37.01%
            IDT_LIST:          0 GB         2 KB      0.00%
    [17/338] Performing build step for 'mcuboot_subimage'
    [1/261] Preparing syscall dependency handling
    
    [214/261] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c: In function 'z_arm_configure_dynamic_mpu_regions':
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    In file included from /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:13:
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: warning: 'arm_core_mpu_configure_dynamic_mpu_regions' reading 12 bytes from a region of size 0 [-Wstringop-overread]
      307 |         arm_core_mpu_configure_dynamic_mpu_regions(dynamic_regions,
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      308 |                                                    region_num);
          |                                                    ~~~~~~~~~~~
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu.c:307:9: note: referencing argument 1 of type 'const struct z_arm_mpu_partition[0]'
    /Users/lorenzo/GitDev/T91_dojo_reference/zephyr/arch/arm/core/aarch32/mpu/arm_core_mpu_dev.h:187:6: note: in a call to function 'arm_core_mpu_configure_dynamic_mpu_regions'
      187 | void arm_core_mpu_configure_dynamic_mpu_regions(
          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [251/261] Linking C executable zephyr/zephyr_pre0.elf

    The point is that looking at this SPU_PERIPHID_Typeit appears in two header files.
    on the nfr5340 it shows this way

      __IOM SPU_PERIPHID_Type PERIPHID[256];        /*!< (@ 0x00000800) Unspecified                                                */

    while on the nrf9160 shows that way

      __IOM SPU_PERIPHID_Type PERIPHID[67];         /*!< (@ 0x00000800) Unspecified                                                */

    I’ve tried setting the value to [256] and the warning seems to disappear. Maybe you can confirm that this is a suitable solution (or part of it)?

      lzpons I believe the warnings are resolved in newer versions of NCS. While these warnings happened in the original log output, it wasn’t the cause of the problem. Since this is unrelated to the first post, feel free to open a new thread if you have any other questions.

      Just to follow up on this - It works without any problems for me in the newest (v2.2) branch

      Terms and Conditions | Privacy Policy