<?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>MCUXpresso GeneralのトピックRe: How to use MCUXpresso SDK API (SDSPI)</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066392#M3570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fei,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Please read the following documents in order to implement FatFs using SPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-330958"&gt;Porting FatFs file system to KL26 SPI SD card code&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN10406.pdf" title="https://www.nxp.com/docs/en/application-note/AN10406.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN10406.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2020 08:17:16 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2020-05-11T08:17:16Z</dc:date>
    <item>
      <title>How to use MCUXpresso SDK API (SDSPI)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066391#M3569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a new user of NXP's MCU.&amp;nbsp;&amp;nbsp;I&amp;nbsp;want to use the SDSPI in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MCUXpresso SDK API, but I don't know how to do the initial. The typical use case is written as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;SPAN class="" style="color: #800000;"&gt;/* SPI_Init(). */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;SPAN class="" style="color: #800000;"&gt;/* Register the SDSPI driver callback. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;SPAN class="" style="color: #800000;"&gt;/* Initializes card. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;SPAN class="" style="color: #e08000;"&gt;if&lt;/SPAN&gt; (kStatus_Success != &lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/210/group__SDSPI.html#ga1189771b440db3505261286c9b1ee7eb" style="color: #4665a2; font-weight: normal; text-decoration: none;"&gt;SDSPI_Init&lt;/A&gt;(card))&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;and I also check the definition of struct "sdspi_host_t" and&amp;nbsp;"sdspi_card_t".&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;But I'm confused about how to initialize them, how to use the SPI1 port to use the API.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;ps: I'm using FRDM-KL46Z and Xpresso IDE + SDK 2.4.1.&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;Thank you for your kindly reply!&lt;/DIV&gt;&lt;DIV class="" style="text-indent: -53px; padding-left: 53px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 04:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066391#M3569</guid>
      <dc:creator>stephenfzhou</dc:creator>
      <dc:date>2020-05-11T04:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use MCUXpresso SDK API (SDSPI)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066392#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fei,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Please read the following documents in order to implement FatFs using SPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-330958"&gt;Porting FatFs file system to KL26 SPI SD card code&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN10406.pdf" title="https://www.nxp.com/docs/en/application-note/AN10406.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN10406.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2020 08:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066392#M3570</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2020-05-11T08:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use MCUXpresso SDK API (SDSPI)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066393#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your kindly reply!&lt;/P&gt;&lt;P&gt;The tutorial you gave is really useful to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;implement FatFs using SPI. But my project developed on SDK 2.4.1, actually I don't need FatFs. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;And the problem I met is when I used the SDSPI, I found in the function SDSPI_Init(&lt;SPAN style="text-indent: -53px;"&gt;card), the structure "card" is defined by&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;struct "sdspi_host_t" and&amp;nbsp;"sdspi_card_t".&amp;nbsp; And I don't know how to connect to the SPI port: SPI1. I didn't find any information about it in&amp;nbsp;&lt;SPAN style="text-indent: 0px;"&gt;Reference Manual&lt;/SPAN&gt;&lt;SPAN style="text-indent: 0px;"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; text-indent: 0px; "&gt;I'm a new developer, appreciate any specific tips!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; text-indent: 0px; "&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; text-indent: 0px; "&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; text-indent: 0px; "&gt;Fei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 01:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066393#M3571</guid>
      <dc:creator>stephenfzhou</dc:creator>
      <dc:date>2020-05-12T01:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use MCUXpresso SDK API (SDSPI)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066394#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; text-indent: -53px;"&gt;You should initialize&amp;nbsp;&lt;SPAN&gt;sdspi_card_t base on your card.&amp;nbsp;The&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;"sdspi_host_t" is initialize in fsl_sdspi_disk.c.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; text-indent: -53px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;BOARD_SDSPI_SPI_BASE should point to the SPI peripheral you used.&amp;nbsp;Define BOARD_SDSPI_SPI_BASE in board.h.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; text-indent: -53px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; text-indent: -53px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; text-indent: -53px;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;Jing&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 08:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066394#M3572</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2020-05-13T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use MCUXpresso SDK API (SDSPI)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066395#M3573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;Thanks! I'll have a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 13:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/How-to-use-MCUXpresso-SDK-API-SDSPI/m-p/1066395#M3573</guid>
      <dc:creator>stephenfzhou</dc:creator>
      <dc:date>2020-05-13T13:57:16Z</dc:date>
    </item>
  </channel>
</rss>

