<?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: S32K314 Qspi Sample Project in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1625843#M21773</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I checked this example project. In this project I added some LUT in mex file. But when I call "&lt;STRONG&gt;&lt;EM&gt;Qspi_Ip_RunReadCommand&lt;/EM&gt;&lt;/STRONG&gt;" function with this LUT index, inside this function i am getting the LUT properly. But inside this another function "&lt;STRONG&gt;&lt;EM&gt;Qspi_Ip_IpRead&lt;/EM&gt;&lt;/STRONG&gt;" is being called. But when I check the LUT there, it is showing 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just mentioning the function definition of &lt;STRONG&gt;Qspi_Ip_RunReadCommand&lt;/STRONG&gt;. Please check it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Qspi_Ip_StatusType Qspi_Ip_RunReadCommand(uint32 instance,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint16 lut,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint32 addr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint8 * dataRead,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;const uint8 * dataCmp,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint32 size&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Qspi_Ip_StatusType status = STATUS_QSPI_IP_SUCCESS;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;const Qspi_Ip_StateType * state = &amp;amp;(Qspi_Ip_MemoryStateStructure[instance]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(instance &amp;lt; QSPI_IP_MEM_INSTANCE_COUNT);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(lut != QSPI_IP_LUT_INVALID);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(addr &amp;lt; state-&amp;gt;configuration-&amp;gt;memSize);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI((size &amp;gt; 0UL) &amp;amp;&amp;amp; ((addr + size) &amp;lt;= state-&amp;gt;configuration-&amp;gt;memSize));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (QSPI_IP_LUT_INVALID == lut)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;status = STATUS_QSPI_IP_ERROR;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* Copy sequence in LUT registers */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(void)Qspi_Ip_InitLutSeq(instance, lut, QSPI_IP_COMMAND_LUT);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Run QSPI command */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;status = Qspi_Ip_IpRead(state-&amp;gt;connection-&amp;gt;qspiInstance, QSPI_IP_COMMAND_LUT, state-&amp;gt;baseAddress + addr, dataRead, dataCmp, size);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;return status;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My doubt is why we are passing &lt;STRONG&gt;QSPI_IP_COMMAND_LUT &lt;/STRONG&gt;&amp;nbsp;as an argument in &lt;STRONG&gt;Qspi_Ip_IpRead() &lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 07:23:13 GMT</pubDate>
    <dc:creator>abhijith_r</dc:creator>
    <dc:date>2023-03-31T07:23:13Z</dc:date>
    <item>
      <title>S32K314 Qspi Sample Project</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1620818#M21565</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please share if anyone have a sample project of QSPI implementation in S32K3. I'm trying to implement QSPI but there is no sample project available in S32DS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijith Raj&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1620818#M21565</guid>
      <dc:creator>abhijith_r</dc:creator>
      <dc:date>2023-03-23T10:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 Qspi Sample Project</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1620937#M21574</link>
      <description>&lt;P&gt;There is an example within FLS driver in S32K3 RTD&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1679581074797.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/216007i4F60DDBDA8412922/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davidtosenovjan_0-1679581074797.png" alt="davidtosenovjan_0-1679581074797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1620937#M21574</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-03-23T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K314 Qspi Sample Project</title>
      <link>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1625843#M21773</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52613"&gt;@davidtosenovjan&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I checked this example project. In this project I added some LUT in mex file. But when I call "&lt;STRONG&gt;&lt;EM&gt;Qspi_Ip_RunReadCommand&lt;/EM&gt;&lt;/STRONG&gt;" function with this LUT index, inside this function i am getting the LUT properly. But inside this another function "&lt;STRONG&gt;&lt;EM&gt;Qspi_Ip_IpRead&lt;/EM&gt;&lt;/STRONG&gt;" is being called. But when I check the LUT there, it is showing 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just mentioning the function definition of &lt;STRONG&gt;Qspi_Ip_RunReadCommand&lt;/STRONG&gt;. Please check it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Qspi_Ip_StatusType Qspi_Ip_RunReadCommand(uint32 instance,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint16 lut,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint32 addr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint8 * dataRead,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;const uint8 * dataCmp,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint32 size&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Qspi_Ip_StatusType status = STATUS_QSPI_IP_SUCCESS;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;const Qspi_Ip_StateType * state = &amp;amp;(Qspi_Ip_MemoryStateStructure[instance]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(instance &amp;lt; QSPI_IP_MEM_INSTANCE_COUNT);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(lut != QSPI_IP_LUT_INVALID);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI(addr &amp;lt; state-&amp;gt;configuration-&amp;gt;memSize);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DEV_ASSERT_QSPI((size &amp;gt; 0UL) &amp;amp;&amp;amp; ((addr + size) &amp;lt;= state-&amp;gt;configuration-&amp;gt;memSize));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (QSPI_IP_LUT_INVALID == lut)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;status = STATUS_QSPI_IP_ERROR;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* Copy sequence in LUT registers */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(void)Qspi_Ip_InitLutSeq(instance, lut, QSPI_IP_COMMAND_LUT);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Run QSPI command */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;status = Qspi_Ip_IpRead(state-&amp;gt;connection-&amp;gt;qspiInstance, QSPI_IP_COMMAND_LUT, state-&amp;gt;baseAddress + addr, dataRead, dataCmp, size);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;return status;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My doubt is why we are passing &lt;STRONG&gt;QSPI_IP_COMMAND_LUT &lt;/STRONG&gt;&amp;nbsp;as an argument in &lt;STRONG&gt;Qspi_Ip_IpRead() &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 07:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K314-Qspi-Sample-Project/m-p/1625843#M21773</guid>
      <dc:creator>abhijith_r</dc:creator>
      <dc:date>2023-03-31T07:23:13Z</dc:date>
    </item>
  </channel>
</rss>

