<?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>LPC MicrocontrollersのトピックRe: LPC5536 and Hyperram</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2253079#M59035</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257258"&gt;@img_gabrigob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the LPC55S36 data sheet.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1764669834411.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368196i00B80985698758DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1764669834411.png" alt="Harry_Zhang_0-1764669834411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The maximum frequency of the clock is 50M(DDR MODE).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    /* Flexspi frequency 150MHz / 3 = 50MHz */
    CLOCK_SetClkDiv(kCLOCK_DivFlexSpiClk, 0U, true);  /*!&amp;lt; Reset FLEXSPICLKDIV divider counter and halt it */
    CLOCK_SetClkDiv(kCLOCK_DivFlexSpiClk, 3U, false); /*!&amp;lt; Set FLEXSPICLKDIV divider to value 3 */

    CLOCK_AttachClk(kPLL0_to_FLEXSPI);                /*!&amp;lt; Switch FLEXSPI to PLL0 */&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_1-1764670019933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368197iA675BD2B9CF5C2E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1764670019933.png" alt="Harry_Zhang_1-1764670019933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 10:07:26 GMT</pubDate>
    <dc:creator>Harry_Zhang</dc:creator>
    <dc:date>2025-12-02T10:07:26Z</dc:date>
    <item>
      <title>LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2247695#M59012</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am struggling with the configuration of the FLEXSPI peripheral on a LPC5536JBD100; the hyperram chip is a S27KS0642GABHV020. The system is on a custom board on which we already successfully integrated other features.&lt;/P&gt;&lt;P&gt;I got inspired by AN12239 which is for a different processor but takes as example a very similar chip to the one I am using: it seems to me that the main difference is in the newer node technology for S27KS0642 which makes it faster than the S27KS0641 used in the application node but the timing diagrams (and so the dummy cycles) and the commands are the same.&lt;/P&gt;&lt;P&gt;Another source of inspiration is from this article&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCX-Microcontrollers-Knowledge/MCX-N947-FlexSPI-Connecting-to-HyperRAM-Analysis-and/ta-p/1988799" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MCX-Microcontrollers-Knowledge/MCX-N947-FlexSPI-Connecting-to-HyperRAM-Analysis-and/ta-p/1988799&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which is not for the same processor I am using but explains the meaning of some fields in the configuration data structures.&lt;/P&gt;&lt;P&gt;I also looked at the example&amp;nbsp;lpcxpresso55s36_flexspi_octal_polling_transfer for comparing the FlexSPI configuration (knowing that something must be changed because it targets a flash device).&lt;/P&gt;&lt;P&gt;My symptom is that when I try to read the vendor id, the function does not return kStatus_Success (it returns the value 7001).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked that the clock is connected:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;CLOCK_SetClkDiv(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_DivFlexSpiClk&lt;/SPAN&gt;&lt;SPAN&gt;, 0U, true); &lt;/SPAN&gt;&lt;SPAN&gt;/*!&amp;lt; Reset FLEXSPICLKDIV divider counter and halt it */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; CLOCK_SetClkDiv(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_DivFlexSpiClk&lt;/SPAN&gt;&lt;SPAN&gt;, 2U, false); &lt;/SPAN&gt;&lt;SPAN&gt;/*!&amp;lt; Set FLEXSPICLKDIV divider to value 2 */&lt;BR /&gt;&lt;BR /&gt; CLOCK_AttachClk(kPLL0_to_FLEXSPI); /*!&amp;lt; Switch FLEXSPI to PLL0 */&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the pins have been configured with the GUI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img_gabrigob_0-1764006902666.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367027i835A520B6CD684F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="img_gabrigob_0-1764006902666.png" alt="img_gabrigob_0-1764006902666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The configuration of the perihperal is done as&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;config_hr&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flexspi_config_t&lt;/SPAN&gt;&lt;SPAN&gt; config;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; tempCustomLUT[ARRAY_SIZE(customLUT)] = {0U};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Copy LUT information from flash region into RAM region, because flash will be reset and back to single mode;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; In lately time, LUT table assignment maybe failed after flash reset due to LUT read entry is application's&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; required mode(such as octal DDR mode) and flash is being in single SDR mode, they don't matched. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; memcpy(tempCustomLUT, customLUT, &lt;/SPAN&gt;&lt;SPAN&gt;sizeof&lt;/SPAN&gt;&lt;SPAN&gt;(tempCustomLUT));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Get FLEXSPI default settings and configure the &lt;/SPAN&gt;&lt;SPAN&gt;flexspi&lt;/SPAN&gt;&lt;SPAN&gt;. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FLEXSPI_GetDefaultConfig(&amp;amp;config);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* &lt;/SPAN&gt;&lt;SPAN&gt;Init&lt;/SPAN&gt;&lt;SPAN&gt; FLEXSPI. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; config.&lt;/SPAN&gt;&lt;SPAN&gt;rxSampleClock&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXSPI_ReadSampleClkExternalInputFromDqsPad&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;//kFLEXSPI_ReadSampleClkLoopbackFromDqsPad;//kFLEXSPI_ReadSampleClkExternalInputFromDqsPad;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//config.enableSckBDiffOpt = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//config.enableCombination = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; config.&lt;/SPAN&gt;&lt;SPAN&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;enableAHBPrefetch&lt;/SPAN&gt;&lt;SPAN&gt; = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; config.&lt;/SPAN&gt;&lt;SPAN&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;enableAHBBufferable&lt;/SPAN&gt;&lt;SPAN&gt; = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; config.&lt;/SPAN&gt;&lt;SPAN&gt;ahbConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;enableAHBCachable&lt;/SPAN&gt;&lt;SPAN&gt; = true;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;//&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt; config.&lt;/SPAN&gt;&lt;SPAN&gt;enableDoze&lt;/SPAN&gt;&lt;SPAN&gt; = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; FLEXSPI_Init(EXAMPLE_FLEXSPI, &amp;amp;config);&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Configure RAM settings according to serial RAM feature. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FLEXSPI_SetFlashConfig(EXAMPLE_FLEXSPI, &amp;amp;deviceconfig, &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXSPI_PortA1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Update LUT table. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FLEXSPI_UpdateLUT(EXAMPLE_FLEXSPI, 0, tempCustomLUT, ARRAY_SIZE(customLUT));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Do software reset. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FLEXSPI_SoftwareReset(EXAMPLE_FLEXSPI);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked that we are using the port A1 even in the function that reads the&amp;nbsp; vendor ID&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;status_t&lt;/SPAN&gt; &lt;SPAN&gt;flexspi_hyper_ram_get_id&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FLEXSPI_Type&lt;/SPAN&gt;&lt;SPAN&gt; *base, &lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; *vendorId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flexspi_transfer_t&lt;/SPAN&gt;&lt;SPAN&gt; flashXfer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;status_t&lt;/SPAN&gt;&lt;SPAN&gt; status;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Write data */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;deviceAddress&lt;/SPAN&gt;&lt;SPAN&gt; = 0x0U;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;port&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXSPI_PortA1&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;cmdType&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXSPI_Read&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;SeqNumber&lt;/SPAN&gt;&lt;SPAN&gt; = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;seqIndex&lt;/SPAN&gt;&lt;SPAN&gt; = HYPERRAM_CMD_LUT_SEQ_IDX_READREG;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;amp;id;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; flashXfer.&lt;/SPAN&gt;&lt;SPAN&gt;dataSize&lt;/SPAN&gt;&lt;SPAN&gt; = 4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; status = FLEXSPI_TransferBlocking(base, &amp;amp;flashXfer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; *vendorId = id &amp;amp; 0xffffU;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; status;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;The flexspi_device_config_t structure is initialized as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;flexspi_device_config_t deviceconfig =&lt;BR /&gt;{&lt;BR /&gt;.flexspiRootClk = 75000000, /* 75MHZ SPI serial clock */&lt;BR /&gt;.isSck2Enabled = false,&lt;BR /&gt;.flashSize = FLASH_SIZE,&lt;BR /&gt;.CSIntervalUnit = kFLEXSPI_CsIntervalUnit1SckCycle,&lt;BR /&gt;.CSInterval = 2,&lt;BR /&gt;.CSHoldTime = 1,&lt;BR /&gt;.CSSetupTime = 1,&lt;BR /&gt;.dataValidTime = 1,&lt;BR /&gt;.columnspace = 3,&lt;BR /&gt;.enableWordAddress = true,&lt;BR /&gt;.AWRSeqIndex = HYPERRAM_CMD_LUT_SEQ_IDX_WRITEDATA,&lt;BR /&gt;.AWRSeqNumber = 1,&lt;BR /&gt;.ARDSeqIndex =HYPERRAM_CMD_LUT_SEQ_IDX_READDATA,&lt;BR /&gt;.ARDSeqNumber = 0,&lt;BR /&gt;.AHBWriteWaitUnit = kFLEXSPI_AhbWriteWaitUnit2AhbCycle,&lt;BR /&gt;.AHBWriteWaitInterval = 0,&lt;BR /&gt;.enableWriteMask = true,&lt;BR /&gt;};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the LUTs values are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#define LATENCY (0x04)&lt;BR /&gt;&lt;BR /&gt;uint32_t customLUT[20] =&lt;BR /&gt;{&lt;BR /&gt;/* Read Data */&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READDATA] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0xA0,kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READDATA + 1] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, LATENCY),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READDATA + 2] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_READ_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),&lt;BR /&gt;&lt;BR /&gt;/* Write Data */&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEDATA] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0x20,kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEDATA + 1] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, LATENCY),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEDATA + 2] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_WRITE_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),&lt;BR /&gt;&lt;BR /&gt;/* Read Register */&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0xE0,kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG + 1] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, LATENCY),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG + 2] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_READ_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),&lt;BR /&gt;&lt;BR /&gt;/* Write Register */&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0x60,kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG + 1] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, LATENCY),&lt;BR /&gt;[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG + 2] =&lt;BR /&gt;FLEXSPI_LUT_SEQ(kFLEXSPI_Command_WRITE_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),&lt;BR /&gt;};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which make sense to me because I am using a total of 48 address bits, DDR mode on 8 pads, the commands are correct.&lt;/P&gt;&lt;P&gt;Is there something I am missing?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Nov 2025 18:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2247695#M59012</guid>
      <dc:creator>img_gabrigob</dc:creator>
      <dc:date>2025-11-24T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248137#M59014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257258"&gt;@img_gabrigob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the pin config.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1764056780057.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367102i3E2E458251FDBCE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1764056780057.png" alt="Harry_Zhang_0-1764056780057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Did you just configure 5 data pins ?&lt;/P&gt;
&lt;P&gt;S27KS0642GABHV020 requires an 8 data&amp;nbsp;&lt;SPAN&gt;pins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 07:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248137#M59014</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-11-25T07:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248292#M59015</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;No, I configured more pins but the screenshot was taken very bad: I suppose there are 8 pin of data one RWDS, one CS_n and a pair of differential clock&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img_gabrigob_0-1764065660961.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367143i93B46AA0EEF3C8BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="img_gabrigob_0-1764065660961.png" alt="img_gabrigob_0-1764065660961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 10:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248292#M59015</guid>
      <dc:creator>img_gabrigob</dc:creator>
      <dc:date>2025-11-25T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248452#M59018</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;thank you. I replied to you but I think I did something wrong (first time using this community) and the reply went directly to my original post.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 14:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2248452#M59018</guid>
      <dc:creator>img_gabrigob</dc:creator>
      <dc:date>2025-11-25T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2249176#M59020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257258"&gt;@img_gabrigob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First i think you can check hardware.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Probe the physical signals (scope):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Confirm CK toggles at the rate you expect, CS# pulses for the transaction, and DQ[7:0] / RWDS show activity when you trigger the read-ID sequence.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And reduce FlexSPI serial clock to a low safe frequency (e.g. 20–25 MHz) while you debug.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then i think you can refer to this LUT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;	/* Read Register */
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG] =
		FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0xE0, kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG + 1] = FLEXSPI_LUT_SEQ(
		kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, 0x06),
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_READREG + 2] =
		FLEXSPI_LUT_SEQ(kFLEXSPI_Command_READ_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),

	/* Write Register */
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG] =
		FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DDR, kFLEXSPI_8PAD, 0x60, kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x18),
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG + 1] = FLEXSPI_LUT_SEQ(
		kFLEXSPI_Command_CADDR_DDR, kFLEXSPI_8PAD, 0x10, kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD, 0x06),
	[4 * HYPERRAM_CMD_LUT_SEQ_IDX_WRITEREG + 2] = FLEXSPI_LUT_SEQ(
		kFLEXSPI_Command_WRITE_DDR, kFLEXSPI_8PAD, 0x04, kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1064-HyperRAM-support-S27KS0641-and-S27KS0642/m-p/1979834" target="_blank"&gt;RT1064 HyperRAM support S27KS0641 and S27KS0642 - NXP Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2249176#M59020</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-11-26T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2251274#M59029</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;I tried to see if there were any differences between my LUT and the one used by the user in the other post you linked but even after trying to adjust the number of dummy in the latency wait state I am still having the same issue.&lt;/P&gt;&lt;P&gt;I don't know if I have misconfigured something on my IDE installation but it seems that on LPC5536 I can not set differential clock from the&amp;nbsp; flexspi_config_t data structure (field&amp;nbsp;enableSckBDiffOpt is inside a disabled ifdef).&lt;/P&gt;&lt;P&gt;We took some measures on the board. The CSN and CLK signal are active.&lt;/P&gt;&lt;P&gt;We captured the clock with two options of slew rate (standard and high)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clk--00001.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367789iC3E92ADB7D28D0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="clk--00001.png" alt="clk--00001.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clk--00002.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367790i7591E9FDF4E4CFA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="clk--00002.png" alt="clk--00002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The clock frequency is slower than I expected it to be (I think that I have set it to 75MHz and here I have 75/2 instead of 150/2).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img_gabrigob_0-1764337693878.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367792i339A2D642D34A515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="img_gabrigob_0-1764337693878.png" alt="img_gabrigob_0-1764337693878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data and RWDS signals are stable at 0V. We just see a little glitch (5ns) on the data signals&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clk--00004.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367791i679B1AC0F84A65D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="clk--00004.png" alt="clk--00004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also attaching the pin_mux and clock_config files that are output from the graphical user interface.&lt;/P&gt;&lt;P&gt;Do you have any other suggestions please?&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 13:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2251274#M59029</guid>
      <dc:creator>img_gabrigob</dc:creator>
      <dc:date>2025-11-28T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2251923#M59031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257258"&gt;@img_gabrigob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the schematic connection to HyperRAM？&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 07:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2251923#M59031</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-12-01T07:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2252248#M59032</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img_gabrigob_0-1764584326382.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367983i7DE738D67D142DF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="img_gabrigob_0-1764584326382.png" alt="img_gabrigob_0-1764584326382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have checked again the schematic and... I realised that RESN is not controlled by the FLEXspi so I changed the software and made it rise.&lt;/P&gt;&lt;P&gt;Now the controller works, we also configured the pins on the MCU to be with Fast Slew Rate option.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ck_vs_rwds_zoom_1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367987i7B874ED9008BB811/image-size/large?v=v2&amp;amp;px=999" role="button" title="ck_vs_rwds_zoom_1.png" alt="ck_vs_rwds_zoom_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the RWDS versus CLK , for example.&lt;/P&gt;&lt;P&gt;So the problems were the values for latency in LUTs (corrected with your link) and the reset.&lt;/P&gt;&lt;P&gt;There's still something I am not understanding even if this is not fundamental for this project but may be useful for future applications: from the configuration in the clock tree I would expect CLK to be at 75MHz but I measured 37.5&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img_gabrigob_1-1764585507218.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368009i83FBA2900343D059/image-size/medium?v=v2&amp;amp;px=400" role="button" title="img_gabrigob_1-1764585507218.png" alt="img_gabrigob_1-1764585507218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any other clock divider I missed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Gabriele&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 10:39:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2252248#M59032</guid>
      <dc:creator>img_gabrigob</dc:creator>
      <dc:date>2025-12-01T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 and Hyperram</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2253079#M59035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/257258"&gt;@img_gabrigob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the LPC55S36 data sheet.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1764669834411.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368196i00B80985698758DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1764669834411.png" alt="Harry_Zhang_0-1764669834411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The maximum frequency of the clock is 50M(DDR MODE).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    /* Flexspi frequency 150MHz / 3 = 50MHz */
    CLOCK_SetClkDiv(kCLOCK_DivFlexSpiClk, 0U, true);  /*!&amp;lt; Reset FLEXSPICLKDIV divider counter and halt it */
    CLOCK_SetClkDiv(kCLOCK_DivFlexSpiClk, 3U, false); /*!&amp;lt; Set FLEXSPICLKDIV divider to value 3 */

    CLOCK_AttachClk(kPLL0_to_FLEXSPI);                /*!&amp;lt; Switch FLEXSPI to PLL0 */&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_1-1764670019933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368197iA675BD2B9CF5C2E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_1-1764670019933.png" alt="Harry_Zhang_1-1764670019933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 10:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-and-Hyperram/m-p/2253079#M59035</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-12-02T10:07:26Z</dc:date>
    </item>
  </channel>
</rss>

