<?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: KSDK-1.1 SPI include file in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344250#M1091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you put me on the track, there is a very significant 'd' which does all the difference.&lt;/P&gt;&lt;P&gt;I have included the fsl_spi_master_driver.h where the correct is fsl_dspi_master_driver.h(!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I may suggest a change it will be that the API documentation tells which file to include...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 09:04:47 GMT</pubDate>
    <dc:creator>oaf</dc:creator>
    <dc:date>2015-01-15T09:04:47Z</dc:date>
    <item>
      <title>KSDK-1.1 SPI include file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344248#M1089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using KDS-2.0.0 and KSDK-1.1.0.&lt;/P&gt;&lt;P&gt;In my project I use a SPI device, but the PEx generated .h file doesn't contain a full definition of what is needed &lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I do it:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "spiCom0.h"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static int HW_SPI0TxHelper(uint8_t *txBuff, size_t length)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi_status_t stat = kStatus_SPI_Busy;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int err = 1;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(SPI_DRV_MasterTransfer(FSL_SPICOM0, NULL, txBuff, NULL, length) == kStatus_Success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t txCnt = 0;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(stat != kStatus_Success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stat = SPI_DRV_MasterGetTransferStatus(FSL_SPICOM0, &amp;amp;txCnt);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(stat == kStatus_Success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return err;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When compiling this sw I got the following error messages:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..\..\Project\Infrastructure\HW.c:99:2: error: unknown type name 'spi_status_t'&lt;/P&gt;&lt;P&gt;&amp;nbsp; spi_status_t stat = kStatus_SPI_Busy;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;..\..\Project\Infrastructure\HW.c:99:22: error: 'kStatus_SPI_Busy' undeclared (first use in this function)&lt;/P&gt;&lt;P&gt;&amp;nbsp; spi_status_t stat = kStatus_SPI_Busy;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that the SPI .h file should contain the definition for all that is needed to use the SPI interface?&lt;/P&gt;&lt;P&gt;What is the intended use here (from the design point of view)?&lt;/P&gt;&lt;P&gt;Is this an error, or have I complete misunderstood?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 16:37:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344248#M1089</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-14T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK-1.1 SPI include file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344249#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the SPI interface function under the SPI component , and in the file of "fsl_dspi_master_driver.h" / "fsl_dspi_slave_driver.h" and so on .&lt;/P&gt;&lt;P&gt;Please see the screenshot below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48392i96AC78E3308990EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 01:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344249#M1090</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-01-15T01:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK-1.1 SPI include file</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344250#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well you put me on the track, there is a very significant 'd' which does all the difference.&lt;/P&gt;&lt;P&gt;I have included the fsl_spi_master_driver.h where the correct is fsl_dspi_master_driver.h(!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I may suggest a change it will be that the API documentation tells which file to include...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 09:04:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KSDK-1-1-SPI-include-file/m-p/344250#M1091</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-01-15T09:04:47Z</dc:date>
    </item>
  </channel>
</rss>

