AMB82-MINI USB host UVC: complete MJPEG payload loss after zero-length IN

We use RTL8735B with AmebaPro2 Arduino 4.1.1-build20260922. In a simultaneous USB-analyzer/AMB82 comparison at MJPEG 640×480/30, 14 of 30 frames lost 19 complete USB payloads. Eighteen of those payloads were followed 13–21 µs later by a zero-length IN transaction; none of 2,634 retained payloads had that pattern. The selected endpoint is 0x82, alternate setting 5, wMaxPacketSize=0x0400. The camera works on other USB hosts.

Please provide the matching source and build instructions for usbh_hcd.c.obj in this release’s libusbd.a, especially usbh_hcd_isr_task, or a corrected libusbd.a. Is the immediate host-channel reactivation after an IN packet expected here? If this source requires an NDA, whom should we contact?

Our libusbd.a SHA-256 is edcbd56424fd4cbf1efcb66e4317039c02ad03d0e28a0527dd61fb8f0ed93fc0; its usbh_hcd.c.obj member is 0c3fb6b7dd5085f1848f067f15779910120636f169bf622e9b4364e991e38497.

:waving_hand: Thanks for posting!

For documentation, SDK resources, FAQs, and community guidelines, please visit: here

For commercial users, if you would like to have dedicated technical support or to connect with us, please fill in the Private User Form

Happy building with Ameba!


:waving_hand: 感謝您的分享!

如需查閱技術文件、SDK 資源、常見問題及社群指南,請參考: 這裡

若您是商業用戶,希望獲得專屬技術支援或與我們聯繫,請填寫 Private User Form (商業用戶表單)

祝您使用 Ameba 開發順利!

Hi @Oleg_Sokolov,

We are currently working on upgrading the USB driver on Arduino SDK, which we hope will help address the frame loss issue.

Alternatively, if you would like to modify the USB related code, you can make the necessary changes in the FreeRTOS SDK and use this provided tools to generate a new set of .a library files for integration into the Arduino SDK.

If you prefer to continue using the Arduino SDK, we recommend installing the latest pre-release version and updating the relevant libraries accordingly.

All open-source USB-related code is available in the FreeRTOS SDK.

However, access to certain USB driver source code is subject to internal approval. If you would like to request access, kindly fill up the Private User Form, and we will review your request accordingly.

You can also try out USBH UVC example on FreeRTOS SDK: ameba-rtos-pro2/component/example/usbh_uvc_new at 29f2c74f6e60ff7bdb5cdeb79160be38f9cbb2db · Ameba-AIoT/ameba-rtos-pro2 · GitHub

Thank you.


To help you get the most out of our solutions and enable us to provide support tailored to your needs, we would appreciate learning more about your company and project requirements.

Please take a few minutes to complete our Private User Form using the link below:

Private User Form Link

The information you provide will help us better understand your application, recommend suitable resources, and offer more effective technical support. All submitted information will be handled with appropriate care and confidentiality.

Thank you for your time and cooperation. If you have any questions while completing the form, please feel free to reach out.