imx8qxp M4: How to use flexspi pins as normal GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8qxp M4: How to use flexspi pins as normal GPIO

Jump to solution
752 Views
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 Kudos
1 Solution
745 Views
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.

 

View solution in original post

0 Kudos
1 Reply
746 Views
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 Kudos