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

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

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

Jump to solution
711 Views
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 Kudos
1 Solution
697 Views
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

 

View solution in original post

1 Reply
698 Views
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