Blinking an LED on the mx6q sabre board

cancel
Showing results for 
Search instead for 
Did you mean: 

Blinking an LED on the mx6q sabre board

2,303 Views
aditkous
Contributor I

Hello,

I'm trying to run a custom kernel on the BD-sl-imx6q board. I saw this and to test if the kernel is running properly, I intend to blink an LED on the starting line of the kernel. According to the reference manual, I'm supposed to set GPIO9 (which is GPIOIO_09 in the board) and test it with GND. The steps as described in the manual are fairly instructive, i.e. set IOMUXC to GPIO (how does one do this programmatically?) and set direction as input/output and perform I/O. All known tutorials are strictly Linux based which use the /sys/class/gpio/* folder to send GPIO signals.

As a standalone program, how can I set the registers and invoke the IOMUXC and conseqently, the GPIO pins? Any lead/assistance would be immensely helpful.

Thanks and regards,

Aditya

Labels (1)
0 Kudos
3 Replies

204 Views
adamhuang
Contributor III

Any update? same question that I would like to submit.

0 Kudos

204 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

Also, the attachement to the following thread may help.

Integrating Processor Expert for i.MX and ARM GCC with Eclipse

Regards,

Yuri.

0 Kudos

204 Views
Yuri
NXP TechSupport
NXP TechSupport

The following thread contains a stand-alone led example for i.MX6. Hope it helps.

“Min startup code for imx6?”

https://community.freescale.com/thread/314008

0 Kudos