<?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: Problem with LPC54113 SPI Configuring Using MCUxpresso in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1604735#M16814</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196394"&gt;@TDC1333&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Just for double check, could you please check the initial configuration of the SPI peripheral and the pins configuration of MISO, MOSI, SCK, and SSELx? It might be useful to look at the SDK examples to compare with your configuration.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, could you please check if the SCK and MOSI signal at LPC54113 pins are working?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Your code seems functional; nonetheless, could you explain why you sent the image of ConfigTools configuration? Looking at it, you are missing SPI driver. If you are using ConfigTools you may want to add it for SPI initialization.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 17:11:28 GMT</pubDate>
    <dc:creator>RaRo</dc:creator>
    <dc:date>2023-02-23T17:11:28Z</dc:date>
    <item>
      <title>Problem with LPC54113 SPI Configuring Using MCUxpresso</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1603529#M16798</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am interfacing LPC54113 with ADS1293 using SPI Protocol.&lt;/P&gt;&lt;P&gt;I have configured Flexcom5 for SPI Using MCUxpresso IDE,But SPI not working.SDI Pin Showing Low voltage.&lt;/P&gt;&lt;P&gt;For Configuration setting PFA&amp;gt;&lt;/P&gt;&lt;P&gt;See Below code,&lt;/P&gt;&lt;P&gt;static void SPI_master_callback(SPI_Type *base,spi_master_handle_t *handle, status_t status,void *userData)&lt;BR /&gt;{&lt;BR /&gt;isFinished = true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;SPI_MasterTransferCreateHandle(ECG_PERIPHERAL, &amp;amp;ECG_handle, SPI_master_callback, NULL); // SPI Handler ECG&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;void ads1293WriteRegister(uint8_t wrAddress, uint8_t data)&lt;BR /&gt;{&lt;BR /&gt;uint8_t dataToSend = (wrAddress &amp;amp; WREG);&lt;BR /&gt;spi_transfer_t ALL_SPI_Transfer;&lt;BR /&gt;memset(&amp;amp;ALL_SPI_Transfer, 0, sizeof(ALL_SPI_Transfer));&lt;BR /&gt;//digitalWrite(csPin, LOW);&lt;BR /&gt;GPIO_PinWrite(BOARD_INITPINS_ECG_CS_GPIO,BOARD_INITPINS_ECG_CS_PORT,BOARD_INITPINS_ECG_CS_PIN,0U);&lt;BR /&gt;ECG_txdbuff[0] = dataToSend;&lt;BR /&gt;// ECG_txdbuff[1] = 0x00;&lt;BR /&gt;ECG_txdbuff[1] = data;&lt;BR /&gt;ALL_SPI_Transfer.txData = ECG_txdbuff;&lt;BR /&gt;ALL_SPI_Transfer.rxData = NULL;&lt;BR /&gt;ALL_SPI_Transfer.dataSize = sizeof(ECG_txdbuff);&lt;BR /&gt;// Send out.&lt;BR /&gt;SPI_MasterTransferNonBlocking(ECG_PERIPHERAL, &amp;amp;ECG_handle, &amp;amp;ALL_SPI_Transfer);&lt;BR /&gt;while(!isFinished)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;GPIO_PinWrite(BOARD_INITPINS_ECG_CS_GPIO,BOARD_INITPINS_ECG_CS_PORT,BOARD_INITPINS_ECG_CS_PIN,1U);&lt;BR /&gt;// digitalWrite(csPin, HIGH);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;uint8_t ads1293ReadRegister(uint8_t rdAddress){&lt;/P&gt;&lt;P&gt;uint8_t rdData;&lt;BR /&gt;uint8_t dataToSend = (rdAddress | RREG);&lt;BR /&gt;spi_transfer_t ALL_SPI_Transfer;&lt;BR /&gt;memset(&amp;amp;ALL_SPI_Transfer, 0, sizeof(ALL_SPI_Transfer));&lt;BR /&gt;// digitalWrite(csPin, LOW);&lt;BR /&gt;GPIO_PinWrite(BOARD_INITPINS_ECG_CS_GPIO,BOARD_INITPINS_ECG_CS_PORT,BOARD_INITPINS_ECG_CS_PIN,0U);&lt;/P&gt;&lt;P&gt;ECG_txBuffer[0] = dataToSend;&lt;BR /&gt;ALL_SPI_Transfer.txData = ECG_txdbuff;&lt;BR /&gt;ALL_SPI_Transfer.rxData = ECG_redbuff;&lt;BR /&gt;ALL_SPI_Transfer.dataSize = sizeof(ECG_txdbuff);&lt;BR /&gt;// Send out.&lt;BR /&gt;SPI_MasterTransferNonBlocking(ECG_PERIPHERAL, &amp;amp;ECG_handle, &amp;amp;ALL_SPI_Transfer);&lt;BR /&gt;while(!isFinished)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;rdData = ECG_redbuff[0];&lt;BR /&gt;// digitalWrite(csPin, HIGH);&lt;BR /&gt;GPIO_PinWrite(BOARD_INITPINS_ECG_CS_GPIO,BOARD_INITPINS_ECG_CS_PORT,BOARD_INITPINS_ECG_CS_PIN,1U);&lt;BR /&gt;return (rdData);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1603529#M16798</guid>
      <dc:creator>TDC1333</dc:creator>
      <dc:date>2023-02-22T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC54113 SPI Configuring Using MCUxpresso</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1604735#M16814</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196394"&gt;@TDC1333&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Just for double check, could you please check the initial configuration of the SPI peripheral and the pins configuration of MISO, MOSI, SCK, and SSELx? It might be useful to look at the SDK examples to compare with your configuration.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, could you please check if the SCK and MOSI signal at LPC54113 pins are working?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Your code seems functional; nonetheless, could you explain why you sent the image of ConfigTools configuration? Looking at it, you are missing SPI driver. If you are using ConfigTools you may want to add it for SPI initialization.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1604735#M16814</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-23T17:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC54113 SPI Configuring Using MCUxpresso</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1606607#M16863</link>
      <description>&lt;P&gt;Hello Raul,&lt;/P&gt;&lt;P&gt;LPC54113 SCK and MOSI Pin are not working properly.SSEL Working Fine.SCK Not generating Colck and Master not sending data to MOSI Pin.&lt;/P&gt;&lt;P&gt;I have use SPI Driver.&lt;/P&gt;&lt;P&gt;Please check my SPI Configure for reference.PFA&lt;/P&gt;&lt;P&gt;Best Regard, TDC.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 06:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1606607#M16863</guid>
      <dc:creator>TDC1333</dc:creator>
      <dc:date>2023-02-28T06:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with LPC54113 SPI Configuring Using MCUxpresso</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1609373#M16926</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196394"&gt;@TDC1333&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Testing your configuration, we noticed a missing line comparing it to the SDK examples that ConfigTools do not create for you in your configuration, and it is needed for the SPI communication to work.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Please try adding to your code, the following line &lt;EM&gt;SPI_MasterGetDefaultConfig(&amp;amp;userConfig)&amp;nbsp;&lt;/EM&gt;before &lt;EM&gt;SPI_MasterInit(ECG_PERIPHERAL, &amp;amp;ECG_config, ECG_CLOCK_SOURCE);&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;The &lt;EM&gt;userConfig&lt;/EM&gt; has to be configure as follows: &lt;EM&gt;spi_master_config_t userConfig;&lt;/EM&gt; Let us know if this helps you to solve your problem.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 17:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Problem-with-LPC54113-SPI-Configuring-Using-MCUxpresso/m-p/1609373#M16926</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-03-03T17:45:46Z</dc:date>
    </item>
  </channel>
</rss>

