GPIO input/output examples on i.MX8 QuadMax bare metal

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

GPIO input/output examples on i.MX8 QuadMax bare metal

跳至解决方案
1,425 次查看
rkohli2000
Contributor III

Hello, 

Can anyone point to a bare metal (without Linux) example or an app note for initializing GPIO pins/or am LED for the iMX8QM MEK board ? Is the SCU FW to be used for this ?

Thanks

 

0 项奖励
回复
1 解答
1,411 次查看
igorpadykov
NXP Employee
NXP Employee

Hi rkohli2000

 

yes SCFW should be used,

one can look at M4 SDK_2.8.0_MEK-MIMX8QM
..boards/mekmimx8qm/driver_examples/gpio

https://mcuxpresso.nxp.com/en/welcome

 

SCFW Porting Kit​

..src\scfw_export_mx8qm_b0\platform\board\mx8qm_mek\board.c
function board_init()
FGPIO_PinInit(FGPIOA, 1U, &config);

FGPIO_PinWrite(FGPIOA, 1U, 1U);

 

Best regards
igor

 

在原帖中查看解决方案

1 回复
1,412 次查看
igorpadykov
NXP Employee
NXP Employee

Hi rkohli2000

 

yes SCFW should be used,

one can look at M4 SDK_2.8.0_MEK-MIMX8QM
..boards/mekmimx8qm/driver_examples/gpio

https://mcuxpresso.nxp.com/en/welcome

 

SCFW Porting Kit​

..src\scfw_export_mx8qm_b0\platform\board\mx8qm_mek\board.c
function board_init()
FGPIO_PinInit(FGPIOA, 1U, &config);

FGPIO_PinWrite(FGPIOA, 1U, 1U);

 

Best regards
igor