Hi, I created an nrfx spim instance referring to the nrfx_spim example on GitHub, but I'm having a problem.
![]()
I added it to the prj.conf file as follows.

Is there anything I didn't know and left out??
thank you
Hi, I created an nrfx spim instance referring to the nrfx_spim example on GitHub, but I'm having a problem.
![]()
I added it to the prj.conf file as follows.

Is there anything I didn't know and left out??
thank you
Hi
Can I know how to get the device note from devicetree
I tried to get the device note below and the compile failed.
#define SPI_NODE DT_NODELABEL(spi1)
const struct device *const dev = DEVICE_DT_GET(SPI_NODE);
struct spi_cs_control cs_ctrl = (struct spi_cs_control){
.gpio = GPIO_DT_SPEC_GET(SPI_NODE, cs_gpios),
.delay = 0u,
};
struct spi_config config = {
.operation = SPI_OP_MODE_MASTER
| SPI_WORD_SET(8)
,
.slave = 0,
.cs = &cs_ctrl,
};
int32_t spi_write(void* tx_buff, size_t length)
{
struct spi_buf tx_buf[1] = {
{.buf = tx_buff, .len = length},
};
struct spi_buf_set tx_set = { .buffers = tx_buf, .count = 1 };
spi_write(dev, &config, &tx_set);
}