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.

[FAQ] PROCESSOR-SDK-J721E: How to use MCU UDMA channels in CSIRX?

Part Number: PROCESSOR-SDK-J721E
Other Parts Discussed in Thread: TDA4VM, SYSCONFIG

By default in PSDKRA, CSIRX driver uses Main UDMA channels for storing the output. This article explains how to use MCU UDMA channels in the SDK/vision apps. 

  • On TDA4VM device, it sometimes requires using of MCU UDMA channels for the CSIRX to make sure CSIRX is not get affected by the other UDMA traffic in the system. This article examples the method to use MCU UDMA channels in CSIRX and provide the patch containing changes in vision_apps for the same. 

    • In order to use MCU UDMA channels for CSIRX, please make sure to allocate enough number of MCU UDMA channels for the mcu2_0 cores, since CSIRX is supported on the mcu2_0 core. Please refer to the FAQ to understand how to allocate channels to mcu2_0 using sysconfig tool and generate sysfw.itb file.
    • At the CSIRX driver init time, driver expects the application to provide the UDMA driver handle and it uses this handle for allocating UDMA channels and configuring these channels. 
    • So to use MCU UDMA channels in the CSIRX, we need to provide handle to the MCU UDMA to the CSIRX driver and then driver takes care of using the channels. 
    • In vision apps, only MAIN UDMA is used on mcu2_0, so it is required to initialize MCU UDMA and get the handle of it in the UDMA Utility
    • Attached patch adds few utility functions to initialize MCU UDMA driver instance and also to get the driver handle. This driver handle is then used in the CSIRX driver. 
    • Please apply this patch on top of ti-processor-sdk-rtos-j721e-evm-08_06_00_12\vision_apps folder and then CSIRX driver will start using MCU UDMA channels. 

    /cfs-file/__key/communityserver-discussions-components-files/791/csirx_5F00_mcu_5F00_udma.patch

    Regards,

    Brijesh