Was using SDK 1.9.1 up till now, but I migrated to SDK 2.0.0 and I changed my overlay file to add the pin control stuff. I have a nrf5340 and use the app_ns board config.
This is the overlay file
This is a C file
So that code used to make the CS line work during communication. The 1.9.1 overlay file used to look like this
&spi2 {
compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = <26>;
mosi-pin = <37>;
miso-pin = <10>;
cs-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
};
And I took away the pin config lines for the new pin control stuff.
Any idea what I'm doing wrong or what I'm missing? I watch the pins on a logic analyzer and the CS line gets configured and goes high and then never goes low.
Also
I was looking through here
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/hardware/peripherals/spi.html
And saw this
struct spi_cs_controlÁ
#include <spi.h>
SPI Chip Select control structure.
This can be used to control a CS line via a GPIO line, instead of using the controller inner CS logic.
So I can use the controller inner CS logic? How do I do that? Was I always using the GPIO line?