Hi Luong
probably you can use memtool, for usage one can look at
p.39 http://www.freescale.com/files/32bit/doc/app_note/AN4576.pdf
and change IOMUX registers for ESAI pads, check:
Chapter 4 External Signals and Pin Multiplexing
Chapter 28 General Purpose Input/Output (GPIO)
Chapter 36 IOMUX Controller (IOMUXC)
IMX6DQRM i.MX 6Dual/6Quad Applications Processor Reference Manual
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Igorpadykov,
Thank you very much, your reply is really helpful for me,
i'm a new guide for ARM A9 and linux, last night, i spent more time to read for understand the document of GPIO and IOMUX, but i don't know the Memtool, could you help a Memtool for I.MX6Q, and my OS is debian,
Thanks and regards,
Luong Nguyen,
P/s: Thank you again for the time,
Hi Luong
you can find it in Demo images or after building Linux sources
L3.0.35_4.1.0_DEMO_IMAGE_BSP : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo and i.MX 6Sololite Linux Binary Demo Files.
L3.0.35_4.1.0_ER_SOURCE_BSP : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo and i.MX 6Sololite Linux BSP Source Code Files.
http://svn.slimdevices.com/repos/jive/7.8/trunk/squeezeos/src/jivetest/memtool.c
Best regards
igor
Dear Igorpadykov,
i use iomux_tool_v3.4.0.3 for creat library and code for change mode of GPIO1_IO2 and GPIO1_IO09, i choose device is I.M6DQ,
the function gpio1_iomux_config():
HW_IOMUXC_SW_MUX_CTL_PAD_GPIO02_WR(
BF_IOMUXC_SW_MUX_CTL_PAD_GPIO02_SION_V(DISABLED) |
BF_IOMUXC_SW_MUX_CTL_PAD_GPIO02_MUX_MODE_V(ALT5));
HW_IOMUXC_SW_PAD_CTL_PAD_GPIO02_WR(
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_HYS_V(ENABLED) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_PUS_V(100K_OHM_PU) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_PUE_V(PULL) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_PKE_V(ENABLED) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_ODE_V(DISABLED) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_SPEED_V(100MHZ) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_DSE_V(40_OHM) |
BF_IOMUXC_SW_PAD_CTL_PAD_GPIO02_SRE_V(SLOW));
all of my test project in a link http://www.mediafire.com/download/4912tz975u06s10/GPIO29.rar, i use eclipse,
but when i runt it, the notification is: Segmentation fault
could you help me?
Thanks and regard,
Luong Nguyen,
Hi Luong
for bare metal tests please try SDK
i.MX 6Series Platform SDK : Bare-metal SDK for the i.MX 6 series
~igor