<?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 SPI Communication with NINA-W132 Wi-Fi Module in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2050085#M57744</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm interfacing the &lt;STRONG&gt;NINA-W132 Wi-Fi module (SPI Slave)&lt;/STRONG&gt; with an &lt;STRONG&gt;LPC54618 microcontroller (SPI Master)&lt;/STRONG&gt; over SPI using &lt;STRONG&gt;MISO, MOSI, CS, and CLK&lt;/STRONG&gt; (without &lt;STRONG&gt;DRDY&lt;/STRONG&gt; or &lt;STRONG&gt;RESET&lt;/STRONG&gt;), configured to &lt;STRONG&gt;Mode 3 (CPOL=1, CPHA=1)&lt;/STRONG&gt; (also tested Mode 1) with an &lt;STRONG&gt;8 MHz clock speed&lt;/STRONG&gt; (datasheet max: 10 MHz) and a &lt;STRONG&gt;minimum transaction length of 8 bytes&lt;/STRONG&gt;, while debugging responses via &lt;STRONG&gt;USART&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;However, when sending the &lt;STRONG&gt;"AT" command&lt;/STRONG&gt; (formatted as an &lt;STRONG&gt;8-byte SPI transaction&lt;/STRONG&gt;) and expecting an &lt;STRONG&gt;"OK"&lt;/STRONG&gt; response (0x4F4B in Hex), I consistently receive &lt;STRONG&gt;unexpected values or garbage data&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I would like to know if anyone has successfully communicated with &lt;STRONG&gt;NINA-W132 over SPI&lt;/STRONG&gt;, if there are any &lt;STRONG&gt;special initialization steps&lt;/STRONG&gt; required before sending AT commands, whether &lt;STRONG&gt;timing issues&lt;/STRONG&gt; could be affecting communication, or if &lt;STRONG&gt;extra dummy bytes&lt;/STRONG&gt; are needed in SPI transactions.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 16:20:01 GMT</pubDate>
    <dc:creator>nithin3200</dc:creator>
    <dc:date>2025-02-24T16:20:01Z</dc:date>
    <item>
      <title>SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2050085#M57744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm interfacing the &lt;STRONG&gt;NINA-W132 Wi-Fi module (SPI Slave)&lt;/STRONG&gt; with an &lt;STRONG&gt;LPC54618 microcontroller (SPI Master)&lt;/STRONG&gt; over SPI using &lt;STRONG&gt;MISO, MOSI, CS, and CLK&lt;/STRONG&gt; (without &lt;STRONG&gt;DRDY&lt;/STRONG&gt; or &lt;STRONG&gt;RESET&lt;/STRONG&gt;), configured to &lt;STRONG&gt;Mode 3 (CPOL=1, CPHA=1)&lt;/STRONG&gt; (also tested Mode 1) with an &lt;STRONG&gt;8 MHz clock speed&lt;/STRONG&gt; (datasheet max: 10 MHz) and a &lt;STRONG&gt;minimum transaction length of 8 bytes&lt;/STRONG&gt;, while debugging responses via &lt;STRONG&gt;USART&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;However, when sending the &lt;STRONG&gt;"AT" command&lt;/STRONG&gt; (formatted as an &lt;STRONG&gt;8-byte SPI transaction&lt;/STRONG&gt;) and expecting an &lt;STRONG&gt;"OK"&lt;/STRONG&gt; response (0x4F4B in Hex), I consistently receive &lt;STRONG&gt;unexpected values or garbage data&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I would like to know if anyone has successfully communicated with &lt;STRONG&gt;NINA-W132 over SPI&lt;/STRONG&gt;, if there are any &lt;STRONG&gt;special initialization steps&lt;/STRONG&gt; required before sending AT commands, whether &lt;STRONG&gt;timing issues&lt;/STRONG&gt; could be affecting communication, or if &lt;STRONG&gt;extra dummy bytes&lt;/STRONG&gt; are needed in SPI transactions.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 16:20:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2050085#M57744</guid>
      <dc:creator>nithin3200</dc:creator>
      <dc:date>2025-02-24T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2052499#M57772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203985"&gt;@nithin3200&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some SPI devices, including the NINA-W132, require a special initialization sequence before AT commands will work correctly. Make sure you're following the proper initialization steps outlined in the datasheet or reference manuals.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 03:24:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2052499#M57772</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-02-27T03:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2052578#M57774</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply. After referring to the reference manual, my understanding is that the SPI control protocol follows a packet structure consisting of a 4-byte header followed by a payload. The first two bytes serve as a preamble, while the last two contain packet information. A packet begins with Chip Select (CS) assertion, and the format varies depending on the direction of data transfer between the host and module.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Header: 0xBA 0x15 0x00 0x02&lt;/P&gt;&lt;P&gt;Payload: 0x41 0x54&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else I should take care of?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 05:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2052578#M57774</guid>
      <dc:creator>nithin3200</dc:creator>
      <dc:date>2025-02-27T05:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2054624#M57803</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203985"&gt;@nithin3200&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you receive unexpected values, verify that byte alignment is correct.&lt;BR /&gt;&lt;BR /&gt;Capture and analyze SPI transactions with a logic analyzer to confirm that the header and payload are sent and received correctly.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 10:05:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2054624#M57803</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-03T10:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2055999#M57828</link>
      <description>&lt;P&gt;Hi &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;Thank you for your reply. The header and payload are being sent and received, but while the header is received correctly, the payload appears to be corrupted. The CS and SCLK signals look fine.&lt;/P&gt;&lt;P&gt;According to the user manual:&lt;BR /&gt;During startup, the module toggles DRDY to indicate that it is awake and polling the SPI interface.&lt;BR /&gt;After detecting toggling on DRDY, the host asserts CS and enables SCLK.&lt;BR /&gt;The module detects SCLK, enables the SPI interface, and sends a +STARTUP message, indicating readiness for AT commands over SPI.&lt;BR /&gt;However, in my case, I do not see any toggling on the DRDY pin during boot. Instead, I directly pull CS low, send the packet (BA, 15, 00, 04, 01, 02, 03, 04), and read the response.&lt;/P&gt;&lt;P&gt;The received packet still shows a corrupted payload:&lt;BR /&gt;BA, 15, 0F, 4F, 55, 50, D2, A4, 73.&lt;/P&gt;&lt;P&gt;Additionally, I am sending and receiving data every second task. While the header format appears correct, the payload corruption persists.&lt;/P&gt;&lt;P&gt;Could you confirm if my approach is correct? Do I need to ensure the DRDY pin toggles before proceeding with SPI communication? Also, should I send some dummy data initially to enable SCLK before reading the packet to receive the +STARTUP message?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Nithin&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2055999#M57828</guid>
      <dc:creator>nithin3200</dc:creator>
      <dc:date>2025-03-05T06:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2057753#M57854</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203985"&gt;@nithin3200&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description above,&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Do I need to ensure the DRDY pin toggles before proceeding with SPI communication?&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Yes,&amp;nbsp;​Even if unused, the DRDY pin is essential for proper initialization.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;DRDY toggling is essential before starting SPI communication. Since you do not see DRDY toggling, the module may not have fully initialized or is not ready to communicate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Try toggling the NINA-W132 RESET pin (if accessible) and monitor DRDY again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 10:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2057753#M57854</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-07T10:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2058692#M57861</link>
      <description>&lt;P&gt;Hi Harry,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. As per your advice, I toggled the RESET pin, and I observed that the DRDY pin starts toggling. However, when I stop toggling the RESET pin, the DRDY pin also stops toggling.&lt;/P&gt;&lt;P&gt;Is this expected behavior, or does it indicate an issue with initialization? Do I need to continuously toggle the RESET pin to keep DRDY active, or should DRDY remain toggling after a single reset&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 10:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2058692#M57861</guid>
      <dc:creator>nithin3200</dc:creator>
      <dc:date>2025-03-10T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2062189#M57907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203985"&gt;@nithin3200&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should not need to continuously toggle the RESET pin to keep DRDY active. I think that’s definitely not expected behavior.&lt;/P&gt;
&lt;P&gt;On power-up or after asserting RESET, the NINA-W132 should perform its internal initialization.&lt;/P&gt;
&lt;P&gt;After releasing RESET, the DRDY pin should start toggling to indicate that the module is awake and polling the SPI interface.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 15:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2062189#M57907</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-14T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication with NINA-W132 Wi-Fi Module</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2064224#M57933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am now observing continuous toggling of the DRDY pin after a single RESET (low to high). After this, I sent an invalid byte and then read back, which resulted in seeing clock pulses as expected.&lt;/P&gt;&lt;P&gt;However, I am not receiving the expected startup message; instead, I am getting garbage values&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 02:12:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Communication-with-NINA-W132-Wi-Fi-Module/m-p/2064224#M57933</guid>
      <dc:creator>nithin3200</dc:creator>
      <dc:date>2025-03-19T02:12:39Z</dc:date>
    </item>
  </channel>
</rss>

