AM3358: Data acquisition from in-built ADC using PRU DMA

Part Number: AM3358

Tool/software:

Hello all,

I am working on BeagleBone Black.

I want to acquire data from in-built ADC (1 channel only) of BB Black for time (10 seconds) at sampling rate (10 kHz). From different post, I came to know that I need PRU and DMA for efficient data acquisition.

Can you tell me the different step to be followed for this? And any basic codes to check all these (PRU-ADC-DMA)?