Other Parts Discussed in Thread: CC3220SF
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.
Hi,
Have you checked the DMA control registers to see if the transfer has completed, or if it is stuck, or maybe even that it wasn't initialized correctly?
Regards,
Michael
Hi,
We are using the code from the camera example. https://github.com/nqd/cc3200/blob/master/example/websock_camera After the MAP_CameraCaptureStart(CAMERA_BASE); the registers in the debugger look next:
CC_CTRL = 0x00012000
CC_IRQENABLE = 0x00090000
CC_IRQSTATUS still all zeroes.
Global interrupts are enabled. I can confirm with my oscilloscope that the frame start condition (VS=rising HS=high) occurs on the corresponding pins. But the interrupt handler is never reached.
The code for the DMA is also taken from the example. But without an interrupt, the DMA never starts.
What else can I check?
Hi,
Just to clarify, it looks like the DMA transfer is initialized correctly in the DMA control struct, just that the DMA transfer never starts. Is that correct?
Regards
Michael
I didn't change the DMA configuration, it's the same as in the example:
Camera CC_CTRL_DMA = 0x00000107
I tried to switch on all possible interrupts for the camera (CC_IRQENABLE=0x000f0f1f) and yet I am not getting any interrupt. Global interrupts are enabled ( MAP_IntMasterEnable(); )
I believe there might be an error in the documentation SWRU465, Table 14-9. Bit 8 is desribed twice: as DMA1_DISABLE and DMA_EN.
Hi,
Thanks for letting me know the DMA setup is unchanged. I haven't had a chance to look into your issue further today, will take a look tomorrow.
Regards,
Michael
Hi,
Just to close out this thread, there was offline discussion we had last week, where we discussed the current status of the camera issue. It was determined that the best course of action was to use a SPI-based camera solution instead.
Regards,
Michael