This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52832 FatFS and other SPI slave devices

Hi,

I have built a prototype that has two SPI slave devices connected to it and it works perfectly. I have now tried to add an SPI SD card aswell by following the FatFS example in SDK 12.3 but this seems to be in conflict with my existing initialisation of the SPI bus. Specifically, the SPI bus is also initialised in app_sdcard.c and expects an explicit CS pin to be specified. With my code, I am handling CS myself in order to allow multiple slave devices. The specification of bus speed is also in conflict.

My questions:

What is the Nordic recommended way of supporting multiple SPI slave devices including an SD card on a single SPI bus?

Has anyone managed to get this working without modifying the SDK code?

Thanks! :)

Related