Hi all,
I'm recently working with Nordic devices (more precisely nRF52840), so I'm still learning. I'm working on a project where I have a shared SPI bus with several devices (each with its own CS pin), and one of them is a SD Card. Initially, to validate the hardware I make use of the available SD Card library from the Nordic SDK, and it worked like a charm (only the SD Card). However, now I have to deal with the fact that I have other peripherals (sensors mainly) that also make use of the same SPI pins.
On our projects, our sensor drivers accept an external SPI instance (created on Main) and then, internally the driver controls the CS in a blocking way. And that works for all the peripherals that make use of the same SPI instance, basically it works in a synchronous way.
However I noticed that the SDK SD Card library doesn't accept that procedure, due to the fact that it creates internally its own SPI instance and deals with it in an asynchronous way. How can I solve it? Does anyone faced the same problem? I'm trying to interact with fatfs directly, but with no success until the moment...
Thanks in advance by your time!!
Miguel Roque
[EDIT: I had to reopen this thread because accidentality I closed the other post :( ]