imx8qxp M4: How to use flexspi pins as normal GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8qxp M4: How to use flexspi pins as normal GPIO

ソリューションへジャンプ
1,900件の閲覧回数
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

ラベル(2)
0 件の賞賛
返信
1 解決策
1,893件の閲覧回数
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,894件の閲覧回数
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 件の賞賛
返信