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

SPI Flash write using DMA

Hi,

I have camera interfaced on GPIOs of nRF52832.. I am reading image data at the rate 80KHz. Is it possible to write the data to SPI Flash (Slave) by DMA or by any other way such that I won't need to buffer much image data before write it to the flash ? Will that be possible at such higher rate ?

Parents
  • Hi

    In that case all you have to do is to point to the right spot in the ring buffer when calling nrf_drv_spi_transfer(..)
    You don't have to copy to a second buffer first.

    Once you get the event from the SPI driver saying that the transaction was completed you can free up that part of the ringbuffer, so that it is available for more data.

    Best regards

Reply
  • Hi

    In that case all you have to do is to point to the right spot in the ring buffer when calling nrf_drv_spi_transfer(..)
    You don't have to copy to a second buffer first.

    Once you get the event from the SPI driver saying that the transaction was completed you can free up that part of the ringbuffer, so that it is available for more data.

    Best regards

Children
No Data
Related