<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Memtool write not working on UART2, UART3... in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798419#M123486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added memtool by adding the following line into my local.conf file&lt;/P&gt;&lt;P&gt;IMAGE_INSTALL_append = "imx-test"&lt;/P&gt;&lt;P&gt;rebuilt using bitbake, and loaded image onto my i.mx6ul board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memtool write to UART3 registers followed by a read shows that the write did not take effect.&amp;nbsp; Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Memtool write success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART1&lt;/STRONG&gt;.UCR1=0x201&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;write &lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;0x00000201&lt;/STRONG&gt;&lt;/SPAN&gt; to 0x02020080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART1&lt;/STRONG&gt;.UCR1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;UART1 Addr:0x2020000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; UART1.UCR1 Addr:0x02020080 Value:&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;0x00000201&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Memtool write no effect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART3.&lt;/STRONG&gt;UCR1=0x201&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;write &lt;STRONG style="color: #339966;"&gt;0x00000201&lt;/STRONG&gt; to 0x021EC080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART3&lt;/STRONG&gt;.UCR1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;UART3 Addr:0x21ec000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; UART3.UCR1 Addr:0x021EC080 Value:&lt;SPAN style="color: #ff0000;"&gt;0x00000C00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Monitored UART3 output with logic analyzer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/dev# echo "hello" &amp;gt; /dev/ttymxc2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run the above command, I see "hello" at the logic analyzer.&amp;nbsp; This leads me to believe that the driver, pin configuration and clock for UART3 are all working fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...somehow UART3 is enabled and working normally, but memtool can not write to the register values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********* begin related info*******&lt;/P&gt;&lt;P&gt;I also tried writes to any/all of UART2, UART3, UART4, and all writes have no effect.&amp;nbsp; Write followed by read shows that the write was ignored.&lt;/P&gt;&lt;P&gt;UART1 is used for console.&amp;nbsp; UART1 is ttymxc0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;root@imx6ul-var-dart:/# &lt;STRONG&gt;stty -F /dev/ttymxc0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;speed 115200 baud; line = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;eol = ^J;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;-brkint ixoff -imaxbel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;-iexten&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART2, UART3, UART4 are used for other things.&amp;nbsp; UART3 is assigned to ttymxc2, the settings for which are shown below.&lt;/P&gt;&lt;P&gt;root@imx6ul-var-dart:/# &lt;STRONG&gt;stty -F /dev/ttymxc2&lt;/STRONG&gt;&lt;BR /&gt;speed 115200 baud; line = 0;&lt;BR /&gt;eol = ^J;&lt;BR /&gt;-brkint ixoff -imaxbel&lt;BR /&gt;-iexten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All active UARTs use the same driver as far as I can tell.&amp;nbsp; The console (UART1) is in the tty group.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/dev&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;crw------- 1 root tty&amp;nbsp;&amp;nbsp; 207,&amp;nbsp; 16 Nov 26 02:22 ttymxc0&lt;BR /&gt;crw------- 1 root root&amp;nbsp; 207,&amp;nbsp; 17 Nov 26 00:41 ttymxc1&lt;BR /&gt;crw------- 1 root root&amp;nbsp; 207,&amp;nbsp; 18 Nov 26 01:40 ttymxc2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read all registers for UART3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;0x021EC080: 00000C00 00004021 0000078C 00004000&lt;BR /&gt;0x021EC090: 00000B10 00002050 00004008 0000002B&lt;BR /&gt;0x021EC0A0: 00000000 00000029 00000C34 00000008&lt;BR /&gt;0x021EC0B0: 00002CA4 00000060 00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read all registers for UART1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;0x02020080: 00000241 0000402F 0000038C 00004002&lt;BR /&gt;0x02020090: 00000B01 00000040 00001080 0000002B&lt;/P&gt;&lt;P&gt;0x020200A0: 00000000 000001F7 00000C34 00000008&lt;BR /&gt;0x020200B0: 00002CA4 00000020 00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device tree source include file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;filename: ../kernel-source/arch/arm/boot/dts/imx6ul-imx6ull-var-dart-common.dtsi&lt;/P&gt;&lt;P&gt;/* Console UART */&lt;BR /&gt;&amp;amp;uart1 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Bluetooth UART */&lt;BR /&gt;&amp;amp;uart2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2&amp;gt;;&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* ttymxc2 UART */&lt;BR /&gt;&amp;amp;uart3 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart3&amp;gt;;&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt; fsl,irda-mode;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********** end related info **********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp; Should I use something else besides memtool for register writes?&amp;nbsp; I looked at devmem and devmem2, perhaps I'll try those next if I can't figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 06:01:25 GMT</pubDate>
    <dc:creator>rust_caleb</dc:creator>
    <dc:date>2018-11-26T06:01:25Z</dc:date>
    <item>
      <title>Memtool write not working on UART2, UART3...</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798419#M123486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added memtool by adding the following line into my local.conf file&lt;/P&gt;&lt;P&gt;IMAGE_INSTALL_append = "imx-test"&lt;/P&gt;&lt;P&gt;rebuilt using bitbake, and loaded image onto my i.mx6ul board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memtool write to UART3 registers followed by a read shows that the write did not take effect.&amp;nbsp; Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Memtool write success&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART1&lt;/STRONG&gt;.UCR1=0x201&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;write &lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;0x00000201&lt;/STRONG&gt;&lt;/SPAN&gt; to 0x02020080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART1&lt;/STRONG&gt;.UCR1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;UART1 Addr:0x2020000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; UART1.UCR1 Addr:0x02020080 Value:&lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;0x00000201&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Memtool write no effect&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART3.&lt;/STRONG&gt;UCR1=0x201&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;write &lt;STRONG style="color: #339966;"&gt;0x00000201&lt;/STRONG&gt; to 0x021EC080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/# /unit_tests/memtool &lt;STRONG&gt;UART3&lt;/STRONG&gt;.UCR1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;SOC: i.MX6ULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;UART3 Addr:0x21ec000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt; UART3.UCR1 Addr:0x021EC080 Value:&lt;SPAN style="color: #ff0000;"&gt;0x00000C00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Monitored UART3 output with logic analyzer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;root@imx6ul-var-dart:/dev# echo "hello" &amp;gt; /dev/ttymxc2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run the above command, I see "hello" at the logic analyzer.&amp;nbsp; This leads me to believe that the driver, pin configuration and clock for UART3 are all working fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...somehow UART3 is enabled and working normally, but memtool can not write to the register values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********* begin related info*******&lt;/P&gt;&lt;P&gt;I also tried writes to any/all of UART2, UART3, UART4, and all writes have no effect.&amp;nbsp; Write followed by read shows that the write was ignored.&lt;/P&gt;&lt;P&gt;UART1 is used for console.&amp;nbsp; UART1 is ttymxc0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;root@imx6ul-var-dart:/# &lt;STRONG&gt;stty -F /dev/ttymxc0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;speed 115200 baud; line = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;eol = ^J;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;-brkint ixoff -imaxbel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;-iexten&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UART2, UART3, UART4 are used for other things.&amp;nbsp; UART3 is assigned to ttymxc2, the settings for which are shown below.&lt;/P&gt;&lt;P&gt;root@imx6ul-var-dart:/# &lt;STRONG&gt;stty -F /dev/ttymxc2&lt;/STRONG&gt;&lt;BR /&gt;speed 115200 baud; line = 0;&lt;BR /&gt;eol = ^J;&lt;BR /&gt;-brkint ixoff -imaxbel&lt;BR /&gt;-iexten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All active UARTs use the same driver as far as I can tell.&amp;nbsp; The console (UART1) is in the tty group.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/dev&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;crw------- 1 root tty&amp;nbsp;&amp;nbsp; 207,&amp;nbsp; 16 Nov 26 02:22 ttymxc0&lt;BR /&gt;crw------- 1 root root&amp;nbsp; 207,&amp;nbsp; 17 Nov 26 00:41 ttymxc1&lt;BR /&gt;crw------- 1 root root&amp;nbsp; 207,&amp;nbsp; 18 Nov 26 01:40 ttymxc2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read all registers for UART3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;0x021EC080: 00000C00 00004021 0000078C 00004000&lt;BR /&gt;0x021EC090: 00000B10 00002050 00004008 0000002B&lt;BR /&gt;0x021EC0A0: 00000000 00000029 00000C34 00000008&lt;BR /&gt;0x021EC0B0: 00002CA4 00000060 00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read all registers for UART1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;0x02020080: 00000241 0000402F 0000038C 00004002&lt;BR /&gt;0x02020090: 00000B01 00000040 00001080 0000002B&lt;/P&gt;&lt;P&gt;0x020200A0: 00000000 000001F7 00000C34 00000008&lt;BR /&gt;0x020200B0: 00002CA4 00000020 00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device tree source include file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;filename: ../kernel-source/arch/arm/boot/dts/imx6ul-imx6ull-var-dart-common.dtsi&lt;/P&gt;&lt;P&gt;/* Console UART */&lt;BR /&gt;&amp;amp;uart1 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart1&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* Bluetooth UART */&lt;BR /&gt;&amp;amp;uart2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2&amp;gt;;&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* ttymxc2 UART */&lt;BR /&gt;&amp;amp;uart3 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart3&amp;gt;;&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt; fsl,irda-mode;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********** end related info **********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp; Should I use something else besides memtool for register writes?&amp;nbsp; I looked at devmem and devmem2, perhaps I'll try those next if I can't figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 06:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798419#M123486</guid>
      <dc:creator>rust_caleb</dc:creator>
      <dc:date>2018-11-26T06:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Memtool write not working on UART2, UART3...</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798420#M123487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rust.caleb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as commented on below link and from memtool sources it uses dev/mem,&lt;/P&gt;&lt;P&gt;so one can try to enable devmem item in kernel config&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/536371?commentID=536371#comment-536371" title="https://community.nxp.com/message/536371?commentID=536371#comment-536371"&gt;https://community.nxp.com/message/536371?commentID=536371#comment-536371&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool/memtool.c?h=imx_4.9.88_2.0.0_ga" title="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool/memtool.c?h=imx_4.9.88_2.0.0_ga"&gt;memtool.c\memtool\test - imx-test - i.MX Driver Test Application Software&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 23:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798420#M123487</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-11-26T23:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Memtool write not working on UART2, UART3...</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798421#M123488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/dev/mem is already installed and enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6ul-var-dart:"&gt;root@imx6ul-var-dart:&lt;/A&gt;&lt;STRONG&gt;/dev&lt;/STRONG&gt;# ls&lt;BR /&gt;autofs loop7 ram12 tty21 tty53&lt;BR /&gt;block &lt;STRONG&gt;mem&lt;/STRONG&gt; ram13 tty22 tty54&lt;BR /&gt;bus memory_bandwidth ram14 tty23 tty55&lt;BR /&gt;char mtab ram15 tty24 tty56&lt;BR /&gt;console mtd0 ram2 tty25 tty57&lt;BR /&gt;cpu_dma_latency mtd0ro ram3 tty26 tty58&lt;BR /&gt;dri mtd1 ram4 tty27 tty59&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As shown in the original post, memtool is successful with writes to registers in UART1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 06:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798421#M123488</guid>
      <dc:creator>rust_caleb</dc:creator>
      <dc:date>2018-11-27T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memtool write not working on UART2, UART3...</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798422#M123489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply&amp;nbsp;enable the clock to the UART3 peripheral.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;/unit_tests/memtool CCM.CCGR1.CG5=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then perform the write to UART3 registers as before.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;/unit_tests/memtool/ UART3.UCR1=0x201&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read on the forums that if the module clock was disabled then memtool writes would hang the console, or somehow freeze the system.&amp;nbsp; On my system it didn't hang the console, so I didn't&amp;nbsp;think to verify that the clock was enabled.&amp;nbsp; Evidently memtool writes can also fail silently if the clock is not enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, writes to the ttymxc2 device would temporarily enable the UART3 clock, set the registers, and then when finished it would disable the clock and clear the registers.&amp;nbsp; So I assumed that UART3 was enabled and being clocked because ttymxc2 was working, but that was an incorrect conclusion to draw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 05:47:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Memtool-write-not-working-on-UART2-UART3/m-p/798422#M123489</guid>
      <dc:creator>rust_caleb</dc:creator>
      <dc:date>2018-11-28T05:47:07Z</dc:date>
    </item>
  </channel>
</rss>

