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.

Integrate USB Device & VPIF of c6748 with startware

I have a customized c6748 board, with a 5M camera sensor 'mt9p031' attached at the VPIF port, and running with 'C6748_StarterWare_1_20_04_01'. Now, I need to capture raw bayer data and then send the data to a host PC through USB. The demo 'VPIF_lcd_loopback' was modified according to the spec of mt9p031 and it looks fine (have interrupts and captured data are verified too). Another demo 'usb_dev_bulk' also works perfect. But when I try to merge them into one application, the VPIF works fine but USB always cannot be appropriately enumerated. That means, when usb_dev_bulk run standalone, it can be fastly enumerated by the opposite Windows PC as a 'Generic Bulk Device', but when same code running with VPIF, it will block for ten seconds and result in 'Unknown Device' as if the enumeration from Windows is failed and timed out.

I tried to shoot this issue for several days but failed, any suggestions would be great appreciated.

Best Regards,

XJ

  • Hi XJ,

    I would like to suggest to try to debug the code "Step by step" or "Step over" to know the code execution flow for both with and without VPIF to find out out the cause of taking 10sec for enumeration.

    May be it could busy with VPIF interrupts, so let finish first VPIF stuff completely and make it ready whatever image or anything to send then call USB stuff.