<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21215/mcb2300-and-sd-card-mci-trouble</link><description> 
Hi, 

 
I wanted to test the SD-card example from keil using the native
MCI interface with an SD card. 
It detects well an Formatted SDcard inserted but asks me forever to
format the card and then , that the format failed... 
When a took a look into</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/113314?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2007 01:28:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5a5de22b-fe8c-4c92-ba18-5a88419dbd66</guid><dc:creator>yann suisini</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s ok now . the ram tip was ok , I just accidently removed a
line (and it returned always with __false condition...) hmm Hmm
:)&lt;/p&gt;

&lt;p&gt;
Thanks all for your help !&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/99781?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2007 22:57:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01c55e87-2b84-4844-b119-e01d9755b0c8</guid><dc:creator>Martin G&amp;#195;&amp;#188;nther</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Yann Suisini,&lt;/p&gt;

&lt;p&gt;
Please see also &lt;a href="http://www.keil.com/support/docs/3357.htm"&gt;http://www.keil.com/support/docs/3357.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Best Regards,&lt;br /&gt;
Martin Guenther&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/99783?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2007 22:51:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4651f692-322a-41d6-8651-bddf6cfe069c</guid><dc:creator>Martin G&amp;#195;&amp;#188;nther</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Yann Suisini,&lt;/p&gt;

&lt;p&gt;
You have to use USB RAM for DMA and the USB RAM starts at
0x7FD00000 and not at 0x7FD0000 as you mentioned before.&lt;/p&gt;

&lt;p&gt;
The best is to create a second RAM area (IRAM2) in uVision under
&lt;b&gt;Options for Target - Target&lt;/b&gt; and locate file &lt;b&gt;RTLFS.lib&lt;/b&gt;
to this area. You select IRAM2 under &lt;b&gt;Options for File - Zero
Initialized Data&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;
Best Regards,&lt;br /&gt;
Martin Guenther&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/75603?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2007 08:20:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:aef767af-2680-4398-8e25-8fb2ea350b5c</guid><dc:creator>yann suisini</dc:creator><description>&lt;p&gt;&lt;p&gt;
There&amp;#39;s some progress :)&lt;/p&gt;

&lt;p&gt;
The inserted card is always detected as unformated.&lt;br /&gt;
I can format it from the board and it seems it&amp;#39;s working well . But
the mcb2368 board always says it&amp;#39;s not formatted...&lt;br /&gt;
Nevertheless, the DMA ram tip solved on part of the problem :)&lt;/p&gt;

&lt;p&gt;
hyperterminal:&lt;/p&gt;

&lt;pre&gt;
SD/MMC Card is Unformatted
Format Flash Memory Card? [Y/N]
Memory Card Formatted.
Card Label is M:KEIL
SD Card Detected (CID:5252797)

SD/MMC Card is Unformatted
Format Flash Memory Card? [Y/N]
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/99791?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2007 06:39:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:85cf4da5-b237-4fae-bba4-34fbc9099af5</guid><dc:creator>yann suisini</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for the tip, But i tried to set up my destination buffer in
usb memory like this without success :&lt;/p&gt;

&lt;pre&gt;
static char pom[512] __attribute__((at(0x7fd0000)))
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
I still got the timeout on the reading...&lt;br /&gt;
But this keil example is supposed to work out of the box ? :).&lt;/p&gt;

&lt;p&gt;
I forget to mention that the MCB2300 is a rev3 and with a LPC2368
.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/48767?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2007 06:09:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:76507216-87a4-4e93-88a3-3a5adc80af8f</guid><dc:creator>Franc  Urbanc</dc:creator><description>&lt;p&gt;&lt;p&gt;
Most likely you have changed the original SD_File example from
RLARM. It is true that the DMA does not work for standard RAM and you
should select IRAM2 for &lt;i&gt;RTLFS.lib&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Franc&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/75600?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2007 05:46:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:68d8b017-833f-420c-93b7-490f03262a65</guid><dc:creator>Sergio Sider</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t know if it&amp;#39;s your case, but the DMA only works if the
buffer you are reading into is in the USB/Ethernet RAM area.&lt;/p&gt;

&lt;p&gt;
Regards,&lt;br /&gt;
Sergio.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCB2300 and SD-Card/MCI trouble</title><link>https://community.arm.com/thread/48774?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2007 05:09:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:970859bc-80b2-493f-bedf-572731c19d1b</guid><dc:creator>yann suisini</dc:creator><description>&lt;p&gt;&lt;p&gt;
I found the problem here:&lt;/p&gt;

&lt;pre&gt;
mci_read_sect(...)
{
...
for (i = 100000; i; i--) {
      if (GPDMA_RAW_INT_TCSTAT &amp;amp; 0x01) {
         /* Data transfer finished. */
         break;
      }
   }
   MCI_DATA_CTRL = 0x00;

   if (i == 0)
   {
        printf(&amp;quot;timeout!\n&amp;quot;);
   }
   else if ((mci_read_status () &amp;amp; 0x0F00) != 0x0900)
   {
        printf(&amp;quot;wrong state!\n&amp;quot;);
   }
...
}
&lt;/pre&gt;

&lt;p&gt;
The debug message returned is &amp;#39;Timeout&amp;#39;...&lt;br /&gt;
I increased the timeout value (100 000 instead 10 000) but without
success.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>