This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI SD Card, sharing same instance with another peripherals

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

Parents
  • Hi Miguel,

    Could you please provide information about the SDK and SD card library which you are using?
    What happens when library does not accept the procedure? Is there any additional information that you could share?

    Best regards,
    Dejan

Reply
  • Hi Miguel,

    Could you please provide information about the SDK and SD card library which you are using?
    What happens when library does not accept the procedure? Is there any additional information that you could share?

    Best regards,
    Dejan

Children
No Data
Related