<?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: SDK example code and issue with flexspi DLL lock (using hyperflash) in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1695832#M4402</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;In my case, we use the COMBINE mode for FLEXSPI1 which uses 8 data signals (A_DATA_0 - A_DATA_3 | B_DATA_0 - B_DATA_3). Furthermore, we use 2 pins to properly clock the memory in differential mode.&lt;BR /&gt;From what I understand:&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; -enableSckBDiffOpt&lt;/STRONG&gt; configures the B_SCLK to work as a negation of the A_SCLK clock which enables the differential clock for the memory.&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; -isSck2Enabled&lt;/STRONG&gt; is used to sort of separate the 2 clocks from each other in order to be able to supply the SCLK_B clock to some other flash chip memory.&lt;/P&gt;&lt;P&gt;Summing that up, for my case, I should not be setting the&amp;nbsp;&lt;STRONG&gt;isSck2Enabled&lt;/STRONG&gt;&amp;nbsp;to 1 (as I only use 1 external memory and I need it to run with differential clock) and only be setting &lt;STRONG&gt;enableSckBDiffOpt&lt;/STRONG&gt;&amp;nbsp; to 1.&lt;/P&gt;&lt;P&gt;Is my understanding correct?&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Michael&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 10:32:31 GMT</pubDate>
    <dc:creator>mimlo</dc:creator>
    <dc:date>2023-07-31T10:32:31Z</dc:date>
    <item>
      <title>SDK example code and issue with flexspi DLL lock (using hyperflash)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1688905#M4388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question regarding interfacing HYPERFLASH memory with flexspi controller on imxrt1170 microcontroller.&lt;/P&gt;&lt;P&gt;My project utilizes code which was ported from &lt;STRONG&gt;evkbimxrt1050_flexspi_hyper_flash_polling_transfer&lt;/STRONG&gt; project to work with imxrt1170 microcontroller. We use custom hardware with imxrt1170 uc and hyperflash&amp;nbsp;S26HS512T from Infineon. The hardware connections to the hyperflash memory were made exactly the same as in the EVAL board MIMXRT1050-EVKB.&lt;BR /&gt;Since I'm using S26HS512T with 1.8VCC hyperflash memory from Infineon, I need it to run with differential master clock. Flexspi API provides config structure called&amp;nbsp;&lt;STRONG&gt;flexspi_config_t&lt;/STRONG&gt; which has the following bit set to true in my code:&lt;BR /&gt;&lt;STRONG&gt;enableSckBDiffOpt &lt;/STRONG&gt;(It enables the second clock for the flash memory as far as I understand it correctly)&lt;/P&gt;&lt;P&gt;By far I was able to read SFDP header bytes, which confirms that the communication between flexspi&amp;lt;=&amp;gt;hyperflash works correctly provided&amp;nbsp; that flexspi root clock is less than 100MHz(DLL loop is disabled). When flexspi root clock is set above 100MHz, it results in the code being stuck in the code below:&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;STRONG&gt;/* Wait slave delay line locked and slave reference delay line locked. */&lt;/STRONG&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;STRONG&gt;while ((base-&amp;gt;STS2 &amp;amp; statusValue) != statusValue)&lt;/STRONG&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;STRONG&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/I&gt;&lt;SPAN&gt;The questions are as follows:&lt;BR /&gt;1.) Now to my question, What is the meaning of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;isSck2Enabled&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in the&amp;nbsp;flexspi_device_config_t&amp;nbsp; struct and should I set it to true in order to utilize differential master clock mode?&lt;/SPAN&gt;&lt;I&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;When this bit is set, DLL calibration is disabled (according to the flexspi &lt;STRONG&gt;FLEXSPI_UpdateDllValue()&lt;/STRONG&gt;&amp;nbsp;function logic).&lt;/P&gt;&lt;P&gt;2.) Should I use DLL calibration at all, when using differential master clock for my hyperflash memory?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1688905#M4388</guid>
      <dc:creator>mimlo</dc:creator>
      <dc:date>2023-07-24T07:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: SDK example code and issue with flexspi DLL lock (using hyperflash)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1694470#M4398</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220472"&gt;@mimlo&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;First of all, we apologize for the delay.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;EM&gt;enableSckBDiffOpt&lt;/EM&gt;&amp;nbsp;according to &lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i-mx-rt-crossover-mcus/i-mx-rt1170-crossover-mcu-dual-core-arm-cortex-m7-and-cortex-m4-operating-up-to-1-ghz:i.MX-RT1170?fpsp=1#documentation" target="_self"&gt;i.MX RT1170 Processor Reference Manual&lt;/A&gt; is a bit used to set Differential clock to A_SCLK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1690494934477.png" style="width: 409px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233989i57A004A2F062E0CD/image-dimensions/409x96?v=v2" width="409" height="96" role="button" title="RaulRomero_1-1690494934477.png" alt="RaulRomero_1-1690494934477.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[Chapter 30. FlexSPI Controller (FLEXSPI). Section 30.7.2.4.4. Fields]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Meanwhile, &lt;EM&gt;isSck2Enabled&lt;/EM&gt; could enable the B_SCLK pad, this might be used when you are not using the combination mode, meaning that you may want to use both SCLK (Port A and Port B).&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regarding your questions about DLL, we recommend you continue using the &lt;EM&gt;FLEXSPI_UpdateDllValue()&lt;/EM&gt; function, as it is part of the example to work with Hyper Flash.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Finally, relating to the root clock, may be useful to take a look to i.MX RT1170 Processor Reference Manual. Section 30.3.17.5. DLL configuration for sampling. There it is mentioned the proper workarounds to work with it.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 21:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1694470#M4398</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-07-27T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: SDK example code and issue with flexspi DLL lock (using hyperflash)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1695832#M4402</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;In my case, we use the COMBINE mode for FLEXSPI1 which uses 8 data signals (A_DATA_0 - A_DATA_3 | B_DATA_0 - B_DATA_3). Furthermore, we use 2 pins to properly clock the memory in differential mode.&lt;BR /&gt;From what I understand:&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; -enableSckBDiffOpt&lt;/STRONG&gt; configures the B_SCLK to work as a negation of the A_SCLK clock which enables the differential clock for the memory.&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; -isSck2Enabled&lt;/STRONG&gt; is used to sort of separate the 2 clocks from each other in order to be able to supply the SCLK_B clock to some other flash chip memory.&lt;/P&gt;&lt;P&gt;Summing that up, for my case, I should not be setting the&amp;nbsp;&lt;STRONG&gt;isSck2Enabled&lt;/STRONG&gt;&amp;nbsp;to 1 (as I only use 1 external memory and I need it to run with differential clock) and only be setting &lt;STRONG&gt;enableSckBDiffOpt&lt;/STRONG&gt;&amp;nbsp; to 1.&lt;/P&gt;&lt;P&gt;Is my understanding correct?&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 10:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1695832#M4402</guid>
      <dc:creator>mimlo</dc:creator>
      <dc:date>2023-07-31T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: SDK example code and issue with flexspi DLL lock (using hyperflash)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1696134#M4404</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220472"&gt;@mimlo&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;As you mention, please not modify&lt;EM&gt; isSck2Enabled&lt;/EM&gt; to run with differential clock.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 20:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1696134#M4404</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-07-31T20:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: SDK example code and issue with flexspi DLL lock (using hyperflash)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1697197#M4412</link>
      <description>&lt;P&gt;Thank you for clarification.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 05:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-example-code-and-issue-with-flexspi-DLL-lock-using/m-p/1697197#M4412</guid>
      <dc:creator>mimlo</dc:creator>
      <dc:date>2023-08-02T05:26:26Z</dc:date>
    </item>
  </channel>
</rss>

