Hello!
I have both SD Card and accelerometer in same SPI bus. Both of them working like charm if another is not present. I'am using app_sdcard from 52 sdk.
Can i use spi manager for my accelerometer or does that effect to sd card drivers?
I have found that SD Card drivers are using gpio to enable and disable CS but problem is that its uses handler. When i try to use same SPI master the sd card:s handler doesn't like data from accelerometer.
I have tried to add NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER to modified nrf_drv_spi_transfer, but then i don't get any data out and it still gives me
<error> app: ERROR 3 [NRF_ERROR_INTERNAL] at C:\nrf\components\libraries\sdcard\app_sdcard.c:987
PC at: 0x0002D26B
And error is from app_sdcard spi_handler.
As i did have few pins to spare. I seperated SD Card and accelerometer to own busses and it still does not work.
SD Card setup:
CS: pin 11
SCK: 16
MOSI: 17
MISO: 18
Using SPI 2 instance
Accelerometer:
CS: 12
SCK: 5
MOSI: 4
MISO: 3
Using SPI 1 instance
The one which initializes first works and other is not doing anything.
I have another sensor which uses i2c and it uses TWI instance 0