<?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>LPC Microcontrollers中的主题 Re: LPC43S67 periph_sdmmc example error</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633930#M24969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omid Athari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found the OM13082 general purpose board didn't connect the SD card pin 4 to the VDD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So, please add a wire between your OM13082 general purpose board&amp;nbsp; SD card pin 4 to VDD,&amp;nbsp; you also can check the SD card pin 4, whether it has 3.3V after you connect the board to your LPCXpresso LPC43S67 board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Now, I modify my board,&amp;nbsp; and test the lpcopen periph_sdmmc example which download from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m4/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m4/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; After insert a SD card, I can create the hello.txt successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. Solid a wire between SD pin 4 to 3.3V like this picture:&lt;/P&gt;&lt;P&gt;SD PIN4-&amp;gt;CN7_12&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2288iFF9F800AE2D8836C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Because in the lpcopen periph_sdmmc example , the code read the MESSAGE.TXT at first:&lt;/P&gt;&lt;P&gt;rc = f_open(&amp;amp;Fil, "MESSAGE.TXT", FA_READ);&lt;/P&gt;&lt;P&gt;you can create a MESSAGE.txt in your SD card before, the he code will read successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. These are the printf in the com from my side:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2333i5DF9DD8125C3561C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After running the code, you will find there has a HELLO.text file in the SD card.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2375i7F369F9D6D25D4F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow my step, and do it again.&lt;/P&gt;&lt;P&gt;BTW, if in your own SD card design, for the stable working, I suggest you add the external 10K pull up in the SD card pin like the mini card circuit in the MCB4357 board:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2473i6669121BEBDB0C91/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Wed, 28 Dec 2016 04:28:54 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-12-28T04:28:54Z</dc:date>
    <item>
      <title>LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633929#M24968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I an using an lpc34S67 (OM13084) along with a OM13082 general purpose board and trying to run the periph_sdmmc example and I get the following error output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializing RTC (might take few seconds)...Done&lt;BR /&gt;Hello NXP Semiconductors&lt;/P&gt;&lt;P&gt;***SDCARD demo***&lt;BR /&gt;Opening MESSAGE.TXT from SD Card...Card Acquire failed...&lt;BR /&gt;Failed.&lt;BR /&gt;Failed with rc=3.&lt;BR /&gt; Done.&lt;BR /&gt;Printing contents of MESSAGE.TXT...&lt;BR /&gt;Failed with rc=9.&lt;BR /&gt; Close the file.&lt;BR /&gt;Failed with rc=9.&lt;BR /&gt; Create a new file (hello.txt).&lt;BR /&gt;Failed with rc=13.&lt;BR /&gt; Write text data "Hello world!" to HELLO.TXT&lt;BR /&gt;Failed with rc=9.&lt;BR /&gt; 0 bytes written.&lt;BR /&gt;Close the file.&lt;BR /&gt;Failed with rc=9.&lt;BR /&gt; Open root directory.&lt;BR /&gt;Failed with rc=13.&lt;BR /&gt; Directory listing...&lt;BR /&gt;Failed with rc=9.&lt;BR /&gt; Test completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The a fomatted card containing "message.txt" file is plugged into the sd card slot on the sheild board&amp;nbsp;&lt;SPAN&gt;OM13082&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omid Athari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 01:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633929#M24968</guid>
      <dc:creator>omidathari</dc:creator>
      <dc:date>2016-12-22T01:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633930#M24969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omid Athari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found the OM13082 general purpose board didn't connect the SD card pin 4 to the VDD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So, please add a wire between your OM13082 general purpose board&amp;nbsp; SD card pin 4 to VDD,&amp;nbsp; you also can check the SD card pin 4, whether it has 3.3V after you connect the board to your LPCXpresso LPC43S67 board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Now, I modify my board,&amp;nbsp; and test the lpcopen periph_sdmmc example which download from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m4/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m4/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; After insert a SD card, I can create the hello.txt successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. Solid a wire between SD pin 4 to 3.3V like this picture:&lt;/P&gt;&lt;P&gt;SD PIN4-&amp;gt;CN7_12&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2288iFF9F800AE2D8836C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Because in the lpcopen periph_sdmmc example , the code read the MESSAGE.TXT at first:&lt;/P&gt;&lt;P&gt;rc = f_open(&amp;amp;Fil, "MESSAGE.TXT", FA_READ);&lt;/P&gt;&lt;P&gt;you can create a MESSAGE.txt in your SD card before, the he code will read successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. These are the printf in the com from my side:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2333i5DF9DD8125C3561C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After running the code, you will find there has a HELLO.text file in the SD card.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2375i7F369F9D6D25D4F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow my step, and do it again.&lt;/P&gt;&lt;P&gt;BTW, if in your own SD card design, for the stable working, I suggest you add the external 10K pull up in the SD card pin like the mini card circuit in the MCB4357 board:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2473i6669121BEBDB0C91/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Wed, 28 Dec 2016 04:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633930#M24969</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-12-28T04:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633931#M24970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&lt;/P&gt;&lt;P&gt;Thank you for all your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 21:37:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633931#M24970</guid>
      <dc:creator>omidathari</dc:creator>
      <dc:date>2017-01-10T21:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633932#M24971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omid Athari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You are welcome, If your problem is solved, please mark the correct answer to close this question, thank you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Wed, 11 Jan 2017 01:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633932#M24971</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-11T01:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633933#M24972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for this; absolutely perfect fix.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2018 23:03:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/633933#M24972</guid>
      <dc:creator>jmccabe</dc:creator>
      <dc:date>2018-03-18T23:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S67 periph_sdmmc example error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/1190912#M43089</link>
      <description>&lt;P&gt;On Revison B boards the documentation (UM10940) states:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;3.4&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Boards from revision B onward include a FET placed in-line with the VDD connection to &lt;/SPAN&gt;&lt;SPAN&gt;the SD/MMC card slot (see Section &lt;/SPAN&gt;&lt;SPAN&gt;4.7). Revision B and later boards have revision &lt;/SPAN&gt;&lt;SPAN&gt;printed on the silkscreen on the underside of the board near the board name; revision A &lt;/SPAN&gt;&lt;SPAN&gt;boards do not have the revision shown.&lt;BR /&gt;&lt;BR /&gt;4.7&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;On revision B and later boards there is a FET placed in-line with the VDD connection to &lt;/SPAN&gt;&lt;SPAN&gt;the SD/MMC card slot. This enables the power to this peripheral to be controlled using a &lt;/SPAN&gt;&lt;SPAN&gt;GPIO connection from pin 1 of CN8 LPC GP Shield.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="signal-2020-11-30-120529.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131338iEE07B855D3A08E0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="signal-2020-11-30-120529.jpeg" alt="signal-2020-11-30-120529.jpeg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;So it's very easy to enable VDD for the SD-Card slot:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Pin1 of CN8 is connected to P2_12 (GPIO1.12). We have to set this GPIO to low to enable VDD.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In the LPCOpen 3.02 samples we have to add in file lpc_board_nxp_lpcxpresso_4337\src\board.c a few lines of code in function Board_SDMMC_Init():&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void Board_SDMMC_Init(void)
{
	Chip_SCU_PinMuxSet(0x1, 9, SDIO_DAT_PINCFG);	/* P1.9 connected to SDIO_D0 */
	Chip_SCU_PinMuxSet(0x1, 10, SDIO_DAT_PINCFG);	/* P1.10 connected to SDIO_D1 */
	Chip_SCU_PinMuxSet(0x1, 11, SDIO_DAT_PINCFG);	/* P1.11 connected to SDIO_D2 */
	Chip_SCU_PinMuxSet(0x1, 12, SDIO_DAT_PINCFG);	/* P1.12 connected to SDIO_D3 */

	Chip_SCU_ClockPinMuxSet(2, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_FUNC4));	/* CLK2 connected to SDIO_CLK */
	Chip_SCU_PinMuxSet(0x1, 6, SDIO_DAT_PINCFG);	/* P1.6 connected to SDIO_CMD */
	Chip_SCU_PinMuxSet(0x1, 13, (SCU_MODE_INBUFF_EN | SCU_MODE_FUNC7));	/* P1.13 connected to SDIO_CD */

	/* Enable VDD for MMMC */
	Chip_SCU_PinMuxSet(0x2, 12, (SCU_PINIO_FAST | SCU_MODE_FUNC0));
	Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 12);
	Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 12, (bool) false);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this fix the sample was running without a wire between SD pin 4 and VDD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 11:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S67-periph-sdmmc-example-error/m-p/1190912#M43089</guid>
      <dc:creator>Svenifax</dc:creator>
      <dc:date>2020-11-30T11:35:01Z</dc:date>
    </item>
  </channel>
</rss>

