Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Save captured image on SDRAM - 0x2C fault

$
0
0

Hello.

I am using ADZS-BF526-EZLITE and OV7670 cam. I am trying to capture an image using PPI port but i have a problem with saving it on SDRAM.

I want to capture image with VGA resolution and matrix are too big for internal memory. I enabled SDRAM memory and declared a matrix with 'section'. Then there was 0x26 fault in SEQSTAT->EXCAUSE. To avoid it I configured a system stack memory to use SDRAM. Stack is using first partition and the matrix is using 4th but there is strange thing - a pointer to matrix contains addres 0x00c561bc (first partition: 0x00000004-0x00ffffff, 4th: 0x03000000-0x03ffffff).

I can change values in matrix but when i want to use adi_ppi_SubmitFrame function with this matrix there is a fault: 'An instruction CPLB miss has occurred without a corresponding CPLB entry' (0x2C in SEQSTAT->EXCAUSE).

Should I configure EBIU to work with DMA in some way? Maybe change EBIU_SDBCTL, EBIU_SDRRC, EBIU_SDGCTL registers? In PPI and DMA registers I haven't any faults and they are enabled but of course this does not guarantee that everything is ok. I have seen a calculator to configure these registers but don't understand how to use it. I was also reading few posts about CPLB errors but I can't solve my problem. Maybe someone more experienced quickly find what I am doing bad. I copy important fragments of my code.


I'll be very grateful for your help.


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>