hello Nordic
i work with ncs 1.7.1, with nrf52832 soc
i tried to add a driver and for some reason i fail and i can not understand why
this is my dts
// Copyright (c) 2022 Nordic Semiconductor ASA
// SPDX-License-Identifier: Apache-2.0
/dts-v1/;
#include <nordic/nrf52832_qfaa.dtsi>
/ {
model = "halo_ep2";
compatible = "halo-ep2";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
nordic,pm-ext-flash = &augu_flash_is25lp128;
};
sensors_on: sensors_on_node {
compatible = "augury,gpio-power";
power_gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
label = "SENSORS_ON";
status = "okay";
#power_resource-cells = <0>;
};
sensor_5v_en: sensor_5v_en_node {
compatible = "augury,gpio-power";
power_gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
label = "SENSOR_5V_EN";
status = "okay";
#power_resource-cells = <0>;
};
flash_on: flash_on_node {
compatible = "augury,gpio-power";
power_gpios = <&gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "FLASH_ON";
status = "okay";
#power_resource-cells = <0>;
};
leds {
compatible = "gpio-leds";
led0_red: led_0 {
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
label = "RED_LED_0";
};
led1_orange: led_1 {
gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
label = "ORANGE_LED_1";
};
led2_green: led_2 {
gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
label = "GREEN_LED_2";
};
};
aliases {
led0-red = &led0_red;
led1-orange = &led1_orange;
led2-green = &led2_green;
};
};
&adc {
status ="okay";
};
&gpiote {
status ="okay";
};
&gpio0 {
status ="okay";
};
&spi0 {
status = "okay";
sck-pin = <8>; // gpio 0 pin 8
mosi-pin = <GPIO_PULL_DOWN>;
miso-pin = <7>; // gpio 0 pin 7
compatible = "nordic,nrf-spim";
ads8866_chain@0 {
compatible = "ti,ads8866_chain";
reg = <0>;
conv_gpios = <&gpio0 6 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
label = "ADS8866_CHAIN";
power_resources = <&sensor_5v_en>;
spi-max-frequency = <8000000>;
};
};
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = <20>;
mosi-pin = <14>; // p0.14
miso-pin = <16>; // p0.16
cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
iis3dwb@0 {
compatible = "st,iis3dwb";
reg = <0>;
int1_gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
int2_gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
label = "IIS3DWB";
power_resources = <&sensors_on>;
spi-max-frequency = <8000000>;
};
};
&spi2 {
status = "okay";
sck-pin = <5>; // gpio 0 pin 5
mosi-pin = <4>; // gpio 0 pin 4
miso-pin = <2>; // gpio 0 pin 2
compatible = "nordic,nrf-spim";
cs-gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
augu_flash_is25lp128: augu_flash_is25lp128@0 {
compatible = "issi,augu_flash_is25lp128";
reg = <0>;
label = "AUGU_FLASH_IS25LP128";
power_resources = <&flash_on>;
jedec_id = [9d 60 18];
spi-max-frequency = <8000000>; //<133000000>;
page_size = <256>;
block_size = <65536>;
size = <0x8000000>;
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
mbr_partition: partition@0 {
label = "mbr";
reg = <0x00000000 0x00001000>;
};
boot_partition: partition@1000 {
label = "mcuboot";
reg = <0x1000 0xc000>;
};
slot0_partition: partition@d000 {
label = "image-0";
reg = <0xd000 0x6c800>;
};
slot1_partition: partition@79800 {
label = "image-1";
reg = <0x79800 0x800>;
};
storage_partition: partition@7a000 {
label = "storage";
reg = <0x7a000 0x6000>;
};
};
};
this is the fault
[00000025] <err> os: r0/a1: 0x00000004 r1/a2: 0x00000214 r2/a3: 0x00000000 [00000026] <err> os: r3/a4: 0x00000001 r12/ip: 0xa0000000 r14/lr: 0x0002d0e1 [00000026] <err> os: xpsr: 0x61000000 [00000026] [1;31m<err> os: s[ 0]: 0x00000000 s[ 1]: 0x00000000 s[ 2]: 0x00000000 s[ 3]: 0x00000000 [00000027] <err> os: s[ 4]: 0x00000000 s[ 5]: 0x00000000 s[ 6]: 0x00000000 s[ 7]: 0x00000000 [00000027] <err> os: s[ 8]: 0x00000000 s[ 9]: 0x00000000 s[10]: 0x00000000 s[11]: 0x00000000 [00000028] <err> os: s[12]: 0x00000000 s[13]: 0x00000000 s[14]: 0x00000000 s[15]: 0x00000000 [00000028] <err> os: fpscr: 0x00000000 [00000028] <err> os: Faulting instruction address (r15/pc): 0x0003b51c [00000028] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0 [00000029] <err> os: Current thread: 0x20004370 (unknown) [00012168] <err> fatal_error: Resetting system ASSERTION FAIL [nrf_gpio_pin_present_check(*p_pin)] @ WEST_TOPDIR/modules/hal/nordic/nrfx/hal/nrf_gpio.h:532
at the moment the driver .c is empty, this is the driver.yaml
description: |
Texas Instruments ADS8866 daisy chain
compatible: "ti,ads8866_chain"
include: spi-device.yaml
properties:
conv_gpios:
type: phandle-array
required: true
str_gpios:
type: phandle-array
required: false
stbr_gpios:
type: phandle-array
required: false
power_resources:
type: phandle-array
required: true
any ideas what is the issue ?
hope to read from you soon
Ziv