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
Any update? same question that I would like to submit.
Hello,
Also, the attachement to the following thread may help.
Integrating Processor Expert for i.MX and ARM GCC with Eclipse
Regards,
Yuri.
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