Hi
SDK:Android Q10.0.0_2.2.0_AUTO
app:android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/
I tried to do it but failed.
Please see the link below for specific operations:
https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/td-p/1262520
Solved! Go to Solution.
Ready to use, need to modify
vendor/nxp/fsl-proprietary/uboot-firmware/imx8q_car/board-imx8qxp.c
BRD_ERR(rm_set_resource_movable(pt_boot, SC_R_GPIO_3,
SC_R_GPIO_3, SC_TRUE));
Then add before GPIO_PinInit
err = sc_pm_set_resource_power_mode(ipc, SC_R_GPIO_3, SC_PM_PW_MODE_ON);
if (SC_ERR_NONE != err)
{
assert(false);
}
But there will be a problem. All pins of GPIO3 will be allocated to M4, and core A cannot be used.
Ready to use, need to modify
vendor/nxp/fsl-proprietary/uboot-firmware/imx8q_car/board-imx8qxp.c
BRD_ERR(rm_set_resource_movable(pt_boot, SC_R_GPIO_3,
SC_R_GPIO_3, SC_TRUE));
Then add before GPIO_PinInit
err = sc_pm_set_resource_power_mode(ipc, SC_R_GPIO_3, SC_PM_PW_MODE_ON);
if (SC_ERR_NONE != err)
{
assert(false);
}
But there will be a problem. All pins of GPIO3 will be allocated to M4, and core A cannot be used.