I am using a DM6435 interfacing to a CCD device in continuous mode. I have based my code off the vpfe driver contained in the psp examples, and it works well until I try to free the frame buffers previously allocated. Basically, I make the following calls: fvid_create() for the ccdc, fvid_allocate() to create 3 buffers for the ccdc and 1 as a software working buffer, fvid_queue() on the 3 buffers, fvid_control() to configure the camera, then fvid_exchange() until I am finished with the camera. At this point, I am attempting to call fvid_freeBuffer() on all 4 allocated buffers. It sporadically fails to return. I assume there is a problem with the ccdc locking one of the buffers? Am I missing a shutdown step? The camera is acting as the master to the vpss. Any suggestions are appreciated.
-Matt