This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540/41 DMA pointer

Other Parts Discussed in Thread: CC2540

Hello,

I am using CC2540 with SimpleBLEPeripheral code. I modified the code to use ADC -> DMA to save the data in XDATA memory and then by using the Periodic task send these saved data.

For my project I want to make a management of the buffer which I am saving the data in but I am not able to  specify the pointer which the DMA using, to know the address of the last saved data.

any suggestions or documentations available regarding this point ?

Kind regards

Sebouh

  • The DMA would keep updating the buffer based on your hardware  settings and it would wraparound once it writes to all the locations of its RAM buffer. The DMA hardware itself does not provide you with the location of the last saved data.

    A suggestion would be to keep track of the DMA  write pointer using your own management scheme.