Hello,
I am using an Adxl362 accelerometer on nrf9160 dk board.
I followed the tutorial a to add the overlay file and even configure the pins i want to use by flashing an appropiate firmware to the nrf52 SoC.
After all the setUp,configuration and wiring i end up the the error;
[00:00:00.000,061] <err> ADXL362: Unable to get GPIO SPI CS device.
I have been trying to make this work for throughout the entire weekend but i have not been successful.
Please find below the content of my files,
nrf9160_pca10090ns.overlay;
&spi3 { compatible = "nordic,nrf-spim"; status = "okay"; sck-pin = <3>; mosi-pin = <4>; miso-pin = <5>; cs-gpios = <&gpio0 8 0>, <&gpio0 7 0>; adxl362@0 { compatible = "adi,adxl362"; label = "ADXL362"; spi-max-frequency = <8000000>; reg = <0x00>; int1-gpios = <&gpio0 9 0>; }; };
prj.conf;
CONFIG_STDOUT_CONSOLE=y CONFIG_SPI=y CONFIG_SENSOR=y CONFIG_ADXL362=y CONFIG_ADXL362_TRIGGER_GLOBAL_THREAD=y CONFIG_ADXL362_INTERRUPT_MODE=1 CONFIG_ADXL362_ABS_REF_MODE=1 #required CONFIG_SPI_3=y CONFIG_SPI_3_NRF_SPIM=y CONFIG_SPI_NRFX=y CONFIG_MAIN_STACK_SIZE=4096 CONFIG_LOG=y CONFIG_LOG_DEFAULT_LEVEL=4 CONFIG_TRUSTED_EXECUTION_NONSECURE=y
Im using the adxl362 sample code found in zephyr;
https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/sensor/adxl362
Please let me know what i am doing wrong
Thanks and regards