AnsweredAssumed Answered

ad9361 adc_capture can't quit

Question asked by hly0407 on Dec 15, 2015
Latest reply on Dec 17, 2015 by hly0407

Halle Everyone


I use ad9361 with no-os system.

I want receive signal ,so i use adc_capure to receive. i select TDD mode, and than use defualt value( except work mode ).

in the defualt main function,after defualt setup,i do this



1. // move ENSM to ALERT

2. // move ENSM to RX

3. adc_capture(1024,ADC_DDR_BASEADDR);


but it stucts at there

    /* Wait until the current transfer is completed. */

    do {

        adc_dma_read(AXI_DMAC_REG_IRQ_PENDING, &reg_val);

    }

    while(reg_val != (AXI_DMAC_IRQ_SOT | AXI_DMAC_IRQ_EOT));


the reg_val is 1, so it can't quit adc_capture.


there are some similar issue have been asked, but i can't find the answer to solve this ploblem.


can't somebody help me , thank you so much~


hly

Outcomes