<?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のトピックRe: Problem with SPI functions in IAR Kickstart for KE02Z FRDM board.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-SPI-functions-in-IAR-Kickstart-for-KE02Z-FRDM-board/m-p/372362#M19396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be the KE02 SPI module driver software issue.&lt;/P&gt;&lt;P&gt;I had reported this issue to related KE product engineer and it will be fixed at next released version.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 06:03:09 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2015-02-13T06:03:09Z</dc:date>
    <item>
      <title>Problem with SPI functions in IAR Kickstart for KE02Z FRDM board.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-SPI-functions-in-IAR-Kickstart-for-KE02Z-FRDM-board/m-p/372361#M19395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was working with the SPI on a FRDM-KE02Z board, and was modifying the SPI_Master_Poll demo workspace by changing the clock polarity and phase bits. There is a line in the app code:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;sSPIConfig.sSettings.bClkPhase1&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;= 1;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This allows (or should allow) one to change the clock phasing as desired. However, I found that if I set that parameter to '0' (zero), the clock phase did not change. In looking through the various driver files, I found this, which is used to determine the level to set that particular bit:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;if( pConfig-&amp;gt;sSettings.bClkPhase1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;{&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;SPI_SetClockPhase(pSPI,1);&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Since the phase bit comes out of reset as a '1', commanding a '0' will never happen, because the "if" statement only does something&amp;nbsp; if the commanded bit is true (or set to '1'). To fix this, I just added a following "else" options:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI_SetClockPhase(sSPI,0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This resolved the problem. However, I noticed other, similar bit test areas with the same issue, so those need to&amp;nbsp; fixed, also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-SPI-functions-in-IAR-Kickstart-for-KE02Z-FRDM-board/m-p/372361#M19395</guid>
      <dc:creator>davetelling</dc:creator>
      <dc:date>2015-02-12T21:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SPI functions in IAR Kickstart for KE02Z FRDM board.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-SPI-functions-in-IAR-Kickstart-for-KE02Z-FRDM-board/m-p/372362#M19396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be the KE02 SPI module driver software issue.&lt;/P&gt;&lt;P&gt;I had reported this issue to related KE product engineer and it will be fixed at next released version.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 06:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-SPI-functions-in-IAR-Kickstart-for-KE02Z-FRDM-board/m-p/372362#M19396</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-02-13T06:03:09Z</dc:date>
    </item>
  </channel>
</rss>

