<?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: SDMMC Example Works, but Program Code Doesn't</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1283306#M4170</link>
    <description>&lt;P&gt;Hi chadgraham,&lt;/P&gt;
&lt;P&gt;Maybe you should check the project configuration. For example the memory arrangement, preprocessor and linker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 08:55:31 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2021-05-27T08:55:31Z</dc:date>
    <item>
      <title>SDMMC Example Works, but Program Code Doesn't</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1282795#M4169</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running MCUXpresso 11.3.1 with SDK 2.9.3 and programming a MIMXRT1060-EVK dev board.&amp;nbsp; When I pull the SDK example evkmimxrt1060_sdcard_interrupt and run the program, everything in the example code works and it is able to access the SD card as intended.&lt;/P&gt;&lt;P&gt;To support it in my program, I copied the major pieces into my program and it gets stuck waiting for the bare metal semaphore when I try to initialize the card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;SDMMC_OSAEventWait() at fsl_sdmmc_osa.c:69 0x6000a104	
SDMMCHOST_TransferFunction() at fsl_sdmmc_host.c:441 0x6002dfc2	
SD_SendInterfaceCondition() at fsl_sd.c:1,272 0x60009584	
SD_ProbeBusVoltage() at fsl_sd.c:1,958 0x60009c06	
SD_CardInit() at fsl_sd.c:2,033 0x60009d36&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have walked both programs starting from boot-up to this line and every step is identical as far as I can tell.&lt;/P&gt;&lt;P&gt;As I was doing this, I noticed that if I program the sample code and then run my code, it works perfectly so I can only assume that the sample code has some configuration setting that isn't in my program, but I can't find anything that is different.&amp;nbsp; (Note: I only need to program the sample code for this trick to work.&amp;nbsp; I don't need to hit run.)&amp;nbsp; If I unplug the board, then my program again fails until I reprogram it with the sample.&lt;/P&gt;&lt;P&gt;Any suggestions on what this might be would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 18:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1282795#M4169</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-05-26T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: SDMMC Example Works, but Program Code Doesn't</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1283306#M4170</link>
      <description>&lt;P&gt;Hi chadgraham,&lt;/P&gt;
&lt;P&gt;Maybe you should check the project configuration. For example the memory arrangement, preprocessor and linker.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 08:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1283306#M4170</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-05-27T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: SDMMC Example Works, but Program Code Doesn't</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1283571#M4172</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In investigating the issue, I discovered that the example program was running in the background after I hit stop implying that the example was actually running and hence, the code could still be the culprit.&amp;nbsp; Using while(1), I was able to block sections of the example code and I eventually tracked down that the InitPins in my code was not calling the pin setup for the SD card.&amp;nbsp; Since this is an IDE generated file, I was a little perplexed until I discovered that the IDE does not appear to call the functional groups by default.&amp;nbsp; After using the flag to add it to my InitPins, everything is working and I'm able to continue my project.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDMMC-Example-Works-but-Program-Code-Doesn-t/m-p/1283571#M4172</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2021-05-27T14:57:33Z</dc:date>
    </item>
  </channel>
</rss>

