<?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 FlexSPI: kFLEXSPI_Command_WRITE_SDR without preceding kFLEXSPI_Command_SDR in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723048#M212602</link>
    <description>&lt;P&gt;For FlexSPI, is it mandatory to have a kFLEXSPI_Command_SDR command before a&amp;nbsp;kFLEXSPI_Command_WRITE_SDR in a LUT sequence?&lt;/P&gt;&lt;P&gt;I'm trying to write arbitrary data via FlexSPI without sending a fixed command code first. At the moment I'm trying to write a single byte as a test. The following LUT sequence apparently has no effect:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_WRITE_SDR, kFLEXSPI_1PAD, 0x00, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0)&lt;/LI-CODE&gt;&lt;P&gt;When I use the following LUT sequence, I can see that command byte 0xAA followed by my data byte is sent:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_1PAD, 0xAA, kFLEXSPI_Command_WRITE_SDR, kFLEXSPI_1PAD, 0x00),&lt;/LI-CODE&gt;&lt;P&gt;This is the code to perform the FlexSPI transfer:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    flexspi_transfer_t flashXfer;
    flashXfer.deviceAddress = 0;
    flashXfer.port          = FLASH_PORT;
    flashXfer.cmdType       = kFLEXSPI_Write;
    flashXfer.SeqNumber     = 1;
    flashXfer.seqIndex      = NOR_CMD_LUT_SEQ_IDX_WRITE;
    flashXfer.data          = data;
    flashXfer.dataSize      = 1;

    status_t status = FLEXSPI_TransferBlocking(base, &amp;amp;flashXfer);&lt;/LI-CODE&gt;&lt;P&gt;I could not find anything in the "i.MX 8M Nano Applications Processor Reference Manual" that would indicate such a restriction.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 10:15:26 GMT</pubDate>
    <dc:creator>stmatscaps</dc:creator>
    <dc:date>2023-09-14T10:15:26Z</dc:date>
    <item>
      <title>FlexSPI: kFLEXSPI_Command_WRITE_SDR without preceding kFLEXSPI_Command_SDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723048#M212602</link>
      <description>&lt;P&gt;For FlexSPI, is it mandatory to have a kFLEXSPI_Command_SDR command before a&amp;nbsp;kFLEXSPI_Command_WRITE_SDR in a LUT sequence?&lt;/P&gt;&lt;P&gt;I'm trying to write arbitrary data via FlexSPI without sending a fixed command code first. At the moment I'm trying to write a single byte as a test. The following LUT sequence apparently has no effect:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_WRITE_SDR, kFLEXSPI_1PAD, 0x00, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0)&lt;/LI-CODE&gt;&lt;P&gt;When I use the following LUT sequence, I can see that command byte 0xAA followed by my data byte is sent:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_1PAD, 0xAA, kFLEXSPI_Command_WRITE_SDR, kFLEXSPI_1PAD, 0x00),&lt;/LI-CODE&gt;&lt;P&gt;This is the code to perform the FlexSPI transfer:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;    flexspi_transfer_t flashXfer;
    flashXfer.deviceAddress = 0;
    flashXfer.port          = FLASH_PORT;
    flashXfer.cmdType       = kFLEXSPI_Write;
    flashXfer.SeqNumber     = 1;
    flashXfer.seqIndex      = NOR_CMD_LUT_SEQ_IDX_WRITE;
    flashXfer.data          = data;
    flashXfer.dataSize      = 1;

    status_t status = FLEXSPI_TransferBlocking(base, &amp;amp;flashXfer);&lt;/LI-CODE&gt;&lt;P&gt;I could not find anything in the "i.MX 8M Nano Applications Processor Reference Manual" that would indicate such a restriction.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 10:15:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723048#M212602</guid>
      <dc:creator>stmatscaps</dc:creator>
      <dc:date>2023-09-14T10:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI: kFLEXSPI_Command_WRITE_SDR without preceding kFLEXSPI_Command_SDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723902#M212656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219896"&gt;@stmatscaps&lt;/a&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you are doing well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kFLEXSPI_Command_SDR -&amp;gt; It will transmit the Command code to Flash, using SDR mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kFLEXSPI_Command_WRITE_SDR -&amp;gt; It will transmit Programming Data to Flash, using SDR mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please make sure to check the format of the lut_seq function is correct as given below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define FLEXSPI_LUT_SEQ(cmd0, pad0, op0, cmd1, pad1, op1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please follow "enum &amp;nbsp; _flexspi_command " -&amp;gt; It will elaborate CMD definition of FLEXSPI, used to form LUT instruction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One can also refer to the MCUXpresso SDK API Reference Manual in the below link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/1095/group__flexspi.html#gga1281e0d76a2090ffd1ec488bcd5243cca1c8772bef3a08e52dc80f57af34366ba" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://mcuxpresso.nxp.com/api_doc/dev/1095/group__flexspi.html%23gga1281e0d76a2090ffd1ec488bcd5243cca1c8772bef3a08e52dc80f57af34366ba&amp;amp;source=gmail&amp;amp;ust=1694863558766000&amp;amp;usg=AOvVaw0Y1-khWZSOLXnh3Cs3c4N8"&gt;https://mcuxpresso.nxp.com/&lt;WBR /&gt;api_doc/dev/1095/group__&lt;WBR /&gt;flexspi.html#&lt;WBR /&gt;gga1281e0d76a2090ffd1ec488bcd5&lt;WBR /&gt;243cca1c8772bef3a08e52dc80f57a&lt;WBR /&gt;f34366ba&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be useful!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 11:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723902#M212656</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-09-15T11:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI: kFLEXSPI_Command_WRITE_SDR without preceding kFLEXSPI_Command_SDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723922#M212659</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;Sanket&lt;/SPAN&gt;,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;kFLEXSPI_Command_SDR -&amp;gt; It will transmit the Command code to Flash, using SDR mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kFLEXSPI_Command_WRITE_SDR -&amp;gt; It will transmit Programming Data to Flash, using SDR mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm aware of the meaning of these commands. My question is whether the "&lt;SPAN&gt;kFLEXSPI_Command_SDR" must appear as first entry in a LUT sequence. This is the behavior that I'm apparently seeing, but I cannot find anything in the documentation that does spell out this restriction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I would like to do is to have "kFLEXSPI_Command_WRITE_SDR" as the first entry in a FlexSPI LUT sequence. This this for communication with an FPGA where we want to encode a command and data in the very first byte of an SPI transmission.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question is whether this is possible somehow, or whether the behavior that I'm seeing is actually an undocumented restriction regarding the possible command sequences in a FlexSPI LUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 12:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1723922#M212659</guid>
      <dc:creator>stmatscaps</dc:creator>
      <dc:date>2023-09-15T12:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSPI: kFLEXSPI_Command_WRITE_SDR without preceding kFLEXSPI_Command_SDR</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1724433#M212709</link>
      <description>&lt;P&gt;&lt;SPAN class="im"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219896"&gt;@stmatscaps&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"My question is whether the "kFLEXSPI_Command_SDR" must appear as first entry in a LUT sequence"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt;Yes, It should appear first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 05:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexSPI-kFLEXSPI-Command-WRITE-SDR-without-preceding-kFLEXSPI/m-p/1724433#M212709</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-09-18T05:57:28Z</dc:date>
    </item>
  </channel>
</rss>

