This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Creating Two SPI instances for same slave

We are using NRF52832, SDK 11.0.0.2 alpha, S132 soft Device ,I need some clarifications on using SPI,

  1. In nrf52832 SPI Master driver is it possible to create two SPI instances for the same slave device.
  2. If Yes is it possible to configure the instance as one for DMA transactions(USE_EASY_DMA==1) and the other for normal SPI transactions(USE_EASY_DMA==0).
Parents
  • Hi, I tried creating two SPI instances SPI1 and SPIM2 for the same slave device connected to pins 11(SCLK), 12(MOSI), 13(MISO), 14(CS), done a 4 byte transaction with slave using SPI1 and it was success followed by 3 seconds delay I tried to do DMA transaction with the same slave but it was not success.

    The same code when I start the DMA transaction after I uninit the SPI instance created for CPU transaction then it is fine.

    In the above scenario I'm not using the SPI slave (data transaction) at the same time by using both instances. what would be the reason for this behaviour?

Reply
  • Hi, I tried creating two SPI instances SPI1 and SPIM2 for the same slave device connected to pins 11(SCLK), 12(MOSI), 13(MISO), 14(CS), done a 4 byte transaction with slave using SPI1 and it was success followed by 3 seconds delay I tried to do DMA transaction with the same slave but it was not success.

    The same code when I start the DMA transaction after I uninit the SPI instance created for CPU transaction then it is fine.

    In the above scenario I'm not using the SPI slave (data transaction) at the same time by using both instances. what would be the reason for this behaviour?

Children
No Data
Related