<?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>SD card</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41016/sd-card</link><description> 
hello dear all, 
I have a problem in create a text file in SD card. here is my code.
it doesn&amp;#39;t create text file. i work on LPC1768. would you tell me
what is the problem with my code? 

 
FATFS fs; /* Work area (file system object) for logical drive</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: SD card</title><link>https://community.arm.com/thread/131525?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2015 21:42:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4dee4138-3314-4c70-a158-c2d33b888379</guid><dc:creator>shabnam shakoor</dc:creator><description>&lt;p&gt;&lt;p&gt;
i don&amp;#39;t write &amp;quot;I can not show all the code. Someone will steel
it.&amp;quot; !!!!!&lt;br /&gt;
is it possible someone steal my name?!! it&amp;#39;s so strange!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/128963?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 15:03:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1dfdc7a1-7d0c-49c4-aca8-7b538e5f5ad5</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yeah - right!&lt;/p&gt;

&lt;p&gt;
You&amp;#39;re using an open-source library, and your code doesn&amp;#39;t even
work - clearly a prime target for theft!!&lt;/p&gt;

&lt;p&gt;
And yet you expect people to fix your broken code for free?!&lt;/p&gt;

&lt;p&gt;
So how about taking the original code you posted, and using that
to demonstrate the problem?&lt;/p&gt;

&lt;p&gt;
Add the return value checks.&lt;/p&gt;

&lt;p&gt;
See where it&amp;#39;s failing,&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/128974?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 13:05:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:453a485c-8317-4f14-b1be-c571a9a0ac54</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, there are real big market for fencing broken code. Decide if
the coders here are actually capable of writing and debugging their
own software.&lt;/p&gt;

&lt;p&gt;
Break it down to the SD layer, and the diskio.c layer, which have
probably both been lifted from other sources. Prove that the SD code
is actually functional, and can read/write sector(s) properly. If
that doesn&amp;#39;t work properly, or handle/manage errors effectively,
nothing you layer on top of it is going to be successful.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/117807?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 12:25:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0657837c-1cea-413f-8021-5d77c9b22e95</guid><dc:creator>Eldon Wok</dc:creator><description>&lt;p&gt;&lt;p&gt;
I can not show all the code. Someone will steel it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/108305?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 07:11:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6c14dc70-c550-4867-be3d-19940f9f53da</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;b&gt;&lt;br /&gt;
Not in the posted code, you don&amp;#39;t!&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
If you&amp;#39;ve changed the code, then show it - and show what return
values you are getting.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/82677?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 04:23:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:faa22ce9-15e0-4ebb-8510-81225ee35d26</guid><dc:creator>shabnam shakoor</dc:creator><description>&lt;p&gt;&lt;p&gt;
i used these code return, but it show 0x00 for fs(file system
object)!! whats the problem with that, it is send back nothing!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card</title><link>https://community.arm.com/thread/69268?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2015 00:26:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3b315c0e-1915-43f2-b5f9-27dcdda9f467</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You ignore the return from &lt;b&gt;f_mount()&lt;/b&gt;;&lt;/p&gt;

&lt;p&gt;
You only check the return code from &lt;b&gt;f_open()&lt;/b&gt; for FR_OK and
FR_EXIST;&lt;/p&gt;

&lt;p&gt;
You ignore the return from &lt;b&gt;f_write()&lt;/b&gt;;&lt;/p&gt;

&lt;p&gt;
You ignore the return from &lt;b&gt;f_close()&lt;/b&gt;;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>