<?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>Kinetis MicrocontrollersのトピックSPI issue in MKM34Z256</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-issue-in-MKM34Z256/m-p/1405902#M62315</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I 'm working in MKM34Z256VLQ7 microcontroller. SPI is not working for me. While debugging from MCUXpresso i can able to see only the configuration and status value update in registers (SPI1-&amp;gt;S), but no changes in data register SPI1-&amp;gt;DL/DH when i write or read to/from slave, it remains 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to communicate with slave, i found that clock and chip select are going fine. Still the MISO And MOSI signals are not correct. i used the same configuration from driver examples.&lt;/P&gt;&lt;P&gt;config-&amp;gt;enableMaster = true;&lt;BR /&gt;config-&amp;gt;enableStopInWaitMode = false;&lt;BR /&gt;config-&amp;gt;polarity = kSPI_ClockPolarityActiveHigh;&lt;BR /&gt;config-&amp;gt;phase = kSPI_ClockPhaseFirstEdge;&lt;BR /&gt;config-&amp;gt;direction = kSPI_MsbFirst;&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;amp;&amp;amp; FSL_FEATURE_SPI_16BIT_TRANSFERS&lt;BR /&gt;config-&amp;gt;dataMode = kSPI_8BitMode;&lt;BR /&gt;#endif /* FSL_FEATURE_SPI_16BIT_TRANSFERS */&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;amp;&amp;amp; FSL_FEATURE_SPI_HAS_FIFO&lt;BR /&gt;config-&amp;gt;txWatermark = kSPI_TxFifoOneHalfEmpty;&lt;BR /&gt;config-&amp;gt;rxWatermark = kSPI_RxFifoOneHalfFull;&lt;BR /&gt;#endif /* FSL_FEATURE_SPI_HAS_FIFO */&lt;/P&gt;&lt;P&gt;config-&amp;gt;pinMode = kSPI_PinModeNormal;&lt;BR /&gt;config-&amp;gt;outputMode = kSPI_SlaveSelectAsGpio;//kSPI_SlaveSelectAutomaticOutput;&lt;BR /&gt;config-&amp;gt;baudRate_Bps = 500000U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing this issue for both SPI10 And SPI1. Whether i need to configure anything other than this.&lt;/P&gt;&lt;P&gt;Tried using both internal(4MHz) and external clocks(4MHz).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 09:20:47 GMT</pubDate>
    <dc:creator>gaya3citizen</dc:creator>
    <dc:date>2022-01-27T09:20:47Z</dc:date>
    <item>
      <title>SPI issue in MKM34Z256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-issue-in-MKM34Z256/m-p/1405902#M62315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I 'm working in MKM34Z256VLQ7 microcontroller. SPI is not working for me. While debugging from MCUXpresso i can able to see only the configuration and status value update in registers (SPI1-&amp;gt;S), but no changes in data register SPI1-&amp;gt;DL/DH when i write or read to/from slave, it remains 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to communicate with slave, i found that clock and chip select are going fine. Still the MISO And MOSI signals are not correct. i used the same configuration from driver examples.&lt;/P&gt;&lt;P&gt;config-&amp;gt;enableMaster = true;&lt;BR /&gt;config-&amp;gt;enableStopInWaitMode = false;&lt;BR /&gt;config-&amp;gt;polarity = kSPI_ClockPolarityActiveHigh;&lt;BR /&gt;config-&amp;gt;phase = kSPI_ClockPhaseFirstEdge;&lt;BR /&gt;config-&amp;gt;direction = kSPI_MsbFirst;&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_SPI_16BIT_TRANSFERS) &amp;amp;&amp;amp; FSL_FEATURE_SPI_16BIT_TRANSFERS&lt;BR /&gt;config-&amp;gt;dataMode = kSPI_8BitMode;&lt;BR /&gt;#endif /* FSL_FEATURE_SPI_16BIT_TRANSFERS */&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_SPI_HAS_FIFO) &amp;amp;&amp;amp; FSL_FEATURE_SPI_HAS_FIFO&lt;BR /&gt;config-&amp;gt;txWatermark = kSPI_TxFifoOneHalfEmpty;&lt;BR /&gt;config-&amp;gt;rxWatermark = kSPI_RxFifoOneHalfFull;&lt;BR /&gt;#endif /* FSL_FEATURE_SPI_HAS_FIFO */&lt;/P&gt;&lt;P&gt;config-&amp;gt;pinMode = kSPI_PinModeNormal;&lt;BR /&gt;config-&amp;gt;outputMode = kSPI_SlaveSelectAsGpio;//kSPI_SlaveSelectAutomaticOutput;&lt;BR /&gt;config-&amp;gt;baudRate_Bps = 500000U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing this issue for both SPI10 And SPI1. Whether i need to configure anything other than this.&lt;/P&gt;&lt;P&gt;Tried using both internal(4MHz) and external clocks(4MHz).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 09:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-issue-in-MKM34Z256/m-p/1405902#M62315</guid>
      <dc:creator>gaya3citizen</dc:creator>
      <dc:date>2022-01-27T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI issue in MKM34Z256</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-issue-in-MKM34Z256/m-p/1412796#M62414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/138234"&gt;@gaya3citizen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My apologies for not being able to reach out you on time!&lt;/P&gt;
&lt;P&gt;Are you still facing this issue? I recommend to check if other registers of the SPI are holding desired values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned that the MOSI and MISO lines are not correct. I would recommend disconnect all of the&amp;nbsp; KM34 (Master)&amp;nbsp; SPI signals and proceed to&amp;nbsp; send write command , and test if the MOSI line is transmitting accordingly.&amp;nbsp; Then pull down the&amp;nbsp; MISO line , so you can get FFs when issuing a read.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above fails, check that you have the proper muxing for the MISO and MOSI pins and if possible test with other pins.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are still having problems or concerns, you can share your project so I can check your problem with &lt;SPAN&gt;SPIx-&amp;gt;DL/DH&amp;nbsp;registers.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Diego.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 02:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-issue-in-MKM34Z256/m-p/1412796#M62414</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2022-02-14T02:53:56Z</dc:date>
    </item>
  </channel>
</rss>

