AnsweredAssumed Answered

ZC706 ADC/DAC memory region

Question asked by Constantine on Jan 23, 2016
Latest reply on Apr 14, 2016 by DragosB

Hello,

 

Project is AD provided ZC706 with FMCOMMS5

When I'm trying to launch adc_capture() for cmd_len=8MB data to ADC_DDR_BASEADDR=0x00800000 here is happening smth strange. When cmd_len=4MB there is no problem

capture_len= ( p_tcptrx -> cmd_len)/16;
adc_capture (capture_len , ADC_DDR_BASEADDR);
Xil_DCacheInvalidateRange(ADC_DDR_BASEADDR, capture_len);

 

It falls down, but different ways

- Just busy and "Could not stop processor after reset"

- Sometimes during step by step execution of adc_capture it reaches the end of the function and than fall

- Sometimes before falling down, it sends some of previous xil_printf() strings (long before error occured)

 

When cmd_len=4MB there is no problem and there weren't them in previous builds of software, when I exactly checked 16MB transaction and it was Ok.

 

Seems like I do smth wrong with memory. How to protect memory regions for ADC and DAC DMA's, don't let processor use it for heap and stack? Or there is another problem?

 

thank you!


Outcomes