Hi
First the fundamentals, I am using:
- nRF52840-DK
- nRF Connect for VS Code:
v2024.7.13
I am trying to create a demonstration project, where I need both SPI and TXI/I2C.
Here is a copy of the essentials:
prj.conf:
nrf52840dk_nrf52840.overlay:
twi code:
spi code:
In my first attempts with only SPI interface enabled, I got it working by using the CONFIG_NRFX_SPIM1=y line in the prj.conf file. But I do not thick that it was the right way.
What do I miss? Do I need more includes? Or some other changes to the project?
I have tried to look at the examples, e.g. "nrfx_spim basic non-blocking example.", here only the CONFIG_NRFX_SPI1=y is used, but the error detector in the editor expects an error (just As in my application), but it does compile:
Thanks in advance.
Kasper