nRF Connect 2.6 SDK builds crashes but working fine with nRF Connect SDK 2.43

Hi, I'm having trouble finding out which update caused my application to crash. The build works fine with nRF Connect 2.43, but with the latest version (2.6), it doesn't work and gives an error in the device tree. I've checked the release notes from versions 2.5, 2.5.1, 2.5.2, and 2.6, but I didn't find any relevant changes regarding the overlay.

I'm using Windows Windows 11.

Given error:

/spi-interface/spi-interface.c.obj -c C:/vacas/find-my-bull-fw-main/src/spi-interface/spi-interface.c
C:/vacas/find-my-bull-fw-main/src/spi-interface/spi-interface.c: In function 'init_spi':
C:/vacas/find-my-bull-fw-main/src/spi-interface/spi-interface.c:23:20: error: incompatible types when assigning to type 'struct spi_cs_control' from type 'struct spi_cs_control *'
   23 |     _spi_cfg->cs = cs_cfg;
      |                    ^~~~~~
[22/194] Building C object CMakeFiles/app.dir/src/lora-lib/nvs.c.obj
C:/vacas/find-my-bull-fw-main/src/lora-lib/nvs.c: In function 'nvs_read_init_parameter':
C:/vacas/find-my-bull-fw-main/src/lora-lib/nvs.c:80:14: warning: unused variable 'devnonce' [-Wunused-variable]
   80 |         int *devnonce = (void *)data;
      |              ^~~~~~~~
C:/vacas/find-my-bull-fw-main/src/lora-lib/nvs.c:79:15: warning: unused variable 'array' [-Wunused-variable]
   79 |         char *array = (void *)data;
      |               ^~~~~
C:/vacas/find-my-bull-fw-main/src/lora-lib/nvs.c:77:17: warning: unused variable 'bytes_written' [-Wunused-variable]
   77 |         ssize_t bytes_written;
      |                 ^~~~~~~~~~~~~
[24/194] Building C object CMakeFiles/app.dir/src/modem/modem.c.obj
In file included from C:/ncs/v2.6.0/zephyr/include/zephyr/logging/log.h:11,
                 from C:/vacas/find-my-bull-fw-main/src/modem/modem.c:3:
C:/vacas/find-my-bull-fw-main/src/modem/modem.c: In function 'lte_handler':
C:/vacas/find-my-bull-fw-main/src/modem/modem.c:35:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long long unsigned int'} [-Wformat=]
   35 |         LOG_INF("TAU pre-warning: Active time: %d", evt->time);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~
      |                                                        |
      |                                                        uint64_t {aka long long unsigned int}
C:/ncs/v2.6.0/zephyr/include/zephyr/logging/log_core.h:245:42: note: in definition of macro 'Z_LOG2'
  245 |                 z_log_printf_arg_checker(__VA_ARGS__); \
      |                                          ^~~~~~~~~~~
C:/ncs/v2.6.0/zephyr/include/zephyr/logging/log.h:63:24: note: in expansion of macro 'Z_LOG'
   63 | #define LOG_INF(...)   Z_LOG(LOG_LEVEL_INF, __VA_ARGS__)
      |                        ^~~~~
C:/vacas/find-my-bull-fw-main/src/modem/modem.c:35:9: note: in expansion of macro 'LOG_INF'
   35 |         LOG_INF("TAU pre-warning: Active time: %d", evt->time);
      |         ^~~~~~~
C:/vacas/find-my-bull-fw-main/src/modem/modem.c:35:49: note: format string is defined here
   35 |         LOG_INF("TAU pre-warning: Active time: %d", evt->time);
      |                                                ~^
      |                                                 |
      |                                                 int
      |                                                %lld
C:/vacas/find-my-bull-fw-main/src/modem/modem.c: In function 'configure_low_power':
C:/vacas/find-my-bull-fw-main/src/modem/modem.c:71:5: warning: 'lte_lc_rai_req' is deprecated [-Wdeprecated-declarations]
   71 |     err = lte_lc_rai_req(true);
      |     ^~~
In file included from C:/vacas/find-my-bull-fw-main/src/modem/modem.c:7:
C:/ncs/v2.6.0/nrf/include/modem/lte_lc.h:1613:18: note: declared here
 1613 | __deprecated int lte_lc_rai_req(bool enable);
      |                  ^~~~~~~~~~~~~~
C:/vacas/find-my-bull-fw-main/src/modem/modem.c: In function 'modem_configure':
C:/vacas/find-my-bull-fw-main/src/modem/modem.c:150:5: warning: 'lte_lc_init_and_connect_async' is deprecated [-Wdeprecated-declarations]
  150 |     err = lte_lc_init_and_connect_async(lte_handler);
      |     ^~~
C:/ncs/v2.6.0/nrf/include/modem/lte_lc.h:1311:18: note: declared here
 1311 | __deprecated int lte_lc_init_and_connect_async(lte_lc_evt_handler_t handler);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[25/194] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
ninja: build stopped: subcommand failed.

Using the 2.43, no error was given.

Overlay File:

// To get started, press Ctrl+Space (or Option+Esc) to bring up the completion menu and view the available nodes.

// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:

// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels

// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html

lsm6dsx: &spi1 {
    status = "okay";
    pinctrl-0 = <&spi1_default>;
    pinctrl-names = "default";
    cs-gpios = <&gpio0 10 (GPIO_ACTIVE_LOW)>;
};

&pinctrl {

    spi1_default: spi1_default {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 11)>;
        };
    };
};

/delete-node/ &{/pin-controller/spi3_default/group1/};
/delete-node/ &{/pin-controller/spi3_sleep/group1/};

&spi3 {
    status = "disabled";
};

&button2 {
    gpios = <&gpio0 0 0>;
};

&button3 {
    gpios = <&gpio0 1 0>;
};

&spi1_default {
    group1 {
        psels = <NRF_PSEL(SPIM_SCK, 0, 11)>,
                <NRF_PSEL(SPIM_MISO, 0, 9)>,
                <NRF_PSEL(SPIM_MOSI, 0, 8)>;
    };
};

/ {
	aliases {
		lora0 = &lora;
	};
};    

&spi3 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    pinctrl-0 = <&spi3_default>;
    cs-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
    lora: sx1276@0 {
		compatible = "semtech,sx1276";
        status = "okay";
		reg = <0>;
		dio-gpios = <&gpio0 22 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //0
			<&gpio0 21 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //1
			<&gpio0 20 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //2
			<&gpio0 25 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //3
			<&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //4
			<&gpio0 23 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; //5
		reset-gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
		spi-max-frequency		 = 	<1000000>;
        power-amplifier-output = "pa-boost";
		// pa-boost-enable-gpios		= <&gpio0 xx GPIO_ACTIVE_HIGH>;
		// power-amplifier-output	 = "rfo";
		// rfo-enable-gpios		 = 	<&gpio0 25 GPIO_ACTIVE_HIGH>;
		// antenna-enable-gpios		= <&gpio0 xx GPIO_ACTIVE_HIGH>;
	};
};

&spi3_default {
	group1 {
		psels = <NRF_PSEL(SPIM_SCK, 0, 16)>,
		  <NRF_PSEL(SPIM_MISO, 0, 18)>,
		  <NRF_PSEL(SPIM_MOSI, 0, 17)>;
	};
};

Related