<?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 Re: i.MX8QX QSPI FLASH ERROR in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017213#M150443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;SPAN&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/513231"&gt;https://community.nxp.com/thread/513231&lt;/A&gt;&amp;nbsp;, I did fixes.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&amp;amp;flexspi0 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_flexspi0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flash0: mx66u51235f@0 {&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "macronix,mx66u51235f";&lt;BR /&gt;spi-max-frequency = &amp;lt;84000000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;spi-nor,ddr-quad-read-dummy = &amp;lt;6&amp;gt;;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;};&lt;BR /&gt;};&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And now flexspi start correctly.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# dmesg | grep flex&lt;BR /&gt;[ 2.232151] fsl-flexspi 5d120000.flexspi: mx66u51235f (65536 Kbytes)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Also read sequence with mtd_debug tool, but I dont know it is true or not.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# mtd_debug read /dev/mtd0 0 5 read_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Copied 5 bytes from address 0x00000000 in flash to read_test.txt&lt;BR /&gt;root@imx8qxpmek:~# cat read_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;����aroot@imx8qxpmek:~#&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Because I think there is a problem. I want to help from you here.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# mtd_debug write /dev/mtd0 0 5 write_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;[ 1069.324509] fsl-flexspi 5d120000.flexspi: Unsupported cmd 0x12&lt;BR /&gt;Copied 5 bytes from write_test.txt to address 0x00000000 in flash&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That I must do for write?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2020 09:09:01 GMT</pubDate>
    <dc:creator>draven</dc:creator>
    <dc:date>2020-02-27T09:09:01Z</dc:date>
    <item>
      <title>i.MX8QX QSPI FLASH ERROR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017211#M150441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My board have&amp;nbsp;mx66u51235f flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I check at u-boot I detect like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=&amp;gt; sf probe&lt;BR /&gt;SF: select 4B addr cmd set&lt;BR /&gt;SF: Detected mx66u51235f with page size 256 Bytes, erase size 64 KiB, total 64 MiB&lt;BR /&gt;SF: read_cmd c&lt;BR /&gt;SF: erase_cmd dc&lt;BR /&gt;SF: write_cmd 12&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So then I added&amp;nbsp;spi-nor.c and another module to run flash from kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My device-tree like that :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;pinctrl_flexspi0: flexspi0grp {&lt;BR /&gt;&amp;nbsp;fsl,pins = &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x00000040&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x00000020&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SC_P_QSPI0A_SS1_B_LSIO_QSPI0A_SS1_B 0x00000020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&amp;amp;flexspi0 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_flexspi0&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;&amp;nbsp;fpgacom: fpgacom0@0 {&lt;BR /&gt;&amp;nbsp;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;compatible = "macronix,mx66u51235f";&lt;BR /&gt;&amp;nbsp;spi-max-frequency = &amp;lt;108000000&amp;gt;;&lt;BR /&gt;&amp;nbsp;spi-nor,ddr-quad-read-dummy = &amp;lt;8&amp;gt;;&lt;BR /&gt;&amp;nbsp;};&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But after init system I get error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx8qxpmek:~# dmesg | grep flex&lt;BR /&gt;[ 2.263447] fsl-flexspi 5d120000.flexspi: can't select read settings supported by both the SPI controller and memory.&lt;BR /&gt;[ 2.274153] fsl-flexspi 5d120000.flexspi: Freescale FlexSPI probe failed&lt;BR /&gt;[ 2.280979] fsl-flexspi: probe of 5d120000.flexspi failed with error -22&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is the problem? Can you help me? I want to access flash from linux side via mtd access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017211#M150441</guid>
      <dc:creator>draven</dc:creator>
      <dc:date>2020-02-26T08:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8QX QSPI FLASH ERROR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017212#M150442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi berat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for "read settings" error one can try to recheck timings of this qspi&lt;/P&gt;&lt;P&gt;using its datasheet and driver timings defined in LUT, adjust them appropriately&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/mtd/spi-nor/fsl-flexspi.c?h=imx_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/mtd/spi-nor/fsl-flexspi.c?h=imx_4.19.35_1.1.0"&gt;fsl-flexspi.c\spi-nor\mtd\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LUT is described in sect.18.2.4.7 Look Up Table&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8DQXPRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 8DualXPlus/8QuadXPlus Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&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>Wed, 26 Feb 2020 23:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017212#M150442</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-26T23:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8QX QSPI FLASH ERROR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017213#M150443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply&lt;SPAN&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/513231"&gt;https://community.nxp.com/thread/513231&lt;/A&gt;&amp;nbsp;, I did fixes.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&amp;amp;flexspi0 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_flexspi0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flash0: mx66u51235f@0 {&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "macronix,mx66u51235f";&lt;BR /&gt;spi-max-frequency = &amp;lt;84000000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;spi-nor,ddr-quad-read-dummy = &amp;lt;6&amp;gt;;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;};&lt;BR /&gt;};&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And now flexspi start correctly.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# dmesg | grep flex&lt;BR /&gt;[ 2.232151] fsl-flexspi 5d120000.flexspi: mx66u51235f (65536 Kbytes)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Also read sequence with mtd_debug tool, but I dont know it is true or not.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# mtd_debug read /dev/mtd0 0 5 read_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Copied 5 bytes from address 0x00000000 in flash to read_test.txt&lt;BR /&gt;root@imx8qxpmek:~# cat read_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;����aroot@imx8qxpmek:~#&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Because I think there is a problem. I want to help from you here.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;root@imx8qxpmek:~# mtd_debug write /dev/mtd0 0 5 write_test.txt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;[ 1069.324509] fsl-flexspi 5d120000.flexspi: Unsupported cmd 0x12&lt;BR /&gt;Copied 5 bytes from write_test.txt to address 0x00000000 in flash&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That I must do for write?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017213#M150443</guid>
      <dc:creator>draven</dc:creator>
      <dc:date>2020-02-27T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8QX QSPI FLASH ERROR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017214#M150444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;berat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think this is due to some flexspi bugs, suggest to debug driver, as&lt;/P&gt;&lt;P&gt;macronix parts may require different initialization. Just as example please refer to&amp;nbsp;&lt;/P&gt;&lt;P&gt;sect.18.2.5.3 Application on Serial NOR Flash device This section provides the example&lt;/P&gt;&lt;P&gt;sequences for serial NOR flash device (Cypress Flash S25FS128S).&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8DQXPRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 8DualXPlus/8QuadXPlus Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Use it as example and make appropriate settings for macronix part according to&lt;/P&gt;&lt;P&gt;its datasheet &amp;nbsp;&lt;A class="link-titled" href="https://www.macronix.com/Lists/Datasheet/Attachments/7674/MX66U51235F,%201.8V,%20512Mb,%20v1.1.pdf" title="https://www.macronix.com/Lists/Datasheet/Attachments/7674/MX66U51235F,%201.8V,%20512Mb,%20v1.1.pdf"&gt;https://www.macronix.com/Lists/Datasheet/Attachments/7674/MX66U51235F,%201.8V,%20512Mb,%20v1.1.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:26:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QX-QSPI-FLASH-ERROR/m-p/1017214#M150444</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-27T09:26:19Z</dc:date>
    </item>
  </channel>
</rss>

