imx8qxp M4: How to use flexspi pins as normal GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8qxp M4: How to use flexspi pins as normal GPIO

跳至解决方案
1,898 次查看
relax-wu
Contributor IV

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

0 项奖励
回复
1 解答
1,891 次查看
relax-wu
Contributor IV

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.

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,892 次查看
relax-wu
Contributor IV

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.

 

0 项奖励
回复