In the PSDKRA, DMPAC is allocated to the core mcu2_1. This article explains how it can be moved to other R5F core, by providing an example of moving it to mcu2_0.
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.
In the PSDKRA, DMPAC is allocated to mcu2_1. This is done to balance to load between mcu2_0 and mcu2_1. mcu2_0 runs capture, isp, msc, ldc, display, ethernet firmware and AEWB algorithm. mcu2_1 runs dmpac and codec. In case, capture sensor is in yuv format, there is no isp and aewb running on mcu2_0 and then DMPAC could be moved to mcu2_0.
This FAQ explains how it can be moved to mcu2_0. Similar steps could be used to move to other R5F core.
In order to move DMPAC on mcu2_0 core, we need to make three changes,
1, Comment ENABLE_VHWA_DMPAC in app_cfg_mcu2_1.h and uncomment it in app_cfg_mcu2_0.h, as shown in attached patch. Please apply attached patch on ti-processor-sdk-rtos-j721e-evm-07_03_00_07\vision_apps folder.
2, We need to move DMPAC target in OpenVX. Please apply attached patch on ti-processor-sdk-rtos-j721e-evm-07_03_00_07\tiovx folder.
3, We need to move DMPAC DMA channels to mcu2_0 in the resource manager. I have changed it in the attached sysfw.itb file, Please copy it to BOOT partition of the SD card, after running "make linux_fs_install_fs".
In the Linux/SPL boot flow, resource manager is part of the sysfw.itb file and sysfw.itb file can be generated from PSDKLA package.
Please follow below steps to generate this file.
1, Please apply below patch on PSDKLA7.3\board-support\k3-image-gen-2021.01a folder. This essentially aligns the resource with the PSDKRA
2, Please apply below patch on PSDKLA7.3\board-support\k3-image-gen-2021.01a folder. This is used to move DMPAC channels from mcu2_1 to mcu2_0 core.
3, Please use command "make u-boot && make linux-dtbs" from the PSDKLA top level directory and then sysfw.itb file will be generated in the PSDKLA7.3\board-support\k3-image-gen-2021.01a folder. After running "make linux_fs_install_sd" command from the vision apps folder, you could copy this sysfw.itb file to BOOT partition of the SD card.
VHWA driver supports by default both the R5F cores, ie mcu2_0 and mcu2_1. In case any other R5F core is required, it needs to be added in vhwa_default_j721e_CORELIST in the file ti-processor-sdk-rtos-j721e-evm-07_03_00_07\pdk_jacinto_07_03_00_29\packages\ti\drv\vhwa\vhwa_component.mk and vhwa needs to be rebuild in PDK, by using "make pdk" command from vision_apps folder.