<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rss  version="2.0">
				<channel>
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>

<language>en-gb</language>
				<copyright>2008 Rickey's World</copyright>
				<managingEditor>contact@nospam.com (Ajay Bhargav)</managingEditor>
				<webMaster>contact@nospam.com (Ajay Bhargav)</webMaster>
				<pubDate>Thu, 08 Jan 2009 19:22:33 -0800</pubDate>
				<lastBuildDate>Thu, 08 Jan 2009 19:22:33 -0800</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>Opening a file located on host pc</title>
<link>http://www.8051projects.net/forum-t6234.html</link>
<description><![CDATA[Hi all,  <br /><br />Im in the final stages of a project and have hit a big glitch need your help! please<br /><br />I have the arm evaluator 7t connected to a pc running metrowerks codewarrior. <br />I am trying to open a text file hosted on the pc hard drive<br /><br />When i try and run my code in the emulator mode (armul) the code works fine the file is found and ll is well. However when i run the same code on the arm board it runs and says it cant find the file. The code in question is:-<br /><br /><div class='code_box'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="c" style="font-family: monospace;">FILE *file_ptr;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993333;">int</span> address<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2014</span><span style="color: #66cc66;">&#93;</span>, value<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2014</span><span style="color: #66cc66;">&#93;</span>, i, j;<br />&nbsp; &nbsp; &nbsp; &nbsp; file_ptr = fopen<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;M:<span style="color: #000099; font-weight: bold;">\\</span>Documents<span style="color: #000099; font-weight: bold;">\\</span>final project local<span style="color: #000099; font-weight: bold;">\\</span>book1.txt&quot;</span>,<span style="color: #ff0000;">&quot;rt&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>file_ptr !=<span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;settings file found<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i &lt; <span style="color: #cc66cc;">2014</span>; i++<span style="color: #66cc66;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fscanf<span style="color: #66cc66;">&#40;</span>file_ptr,<span style="color: #ff0000;">&quot;%x&quot;</span>,&address<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose<span style="color: #66cc66;">&#40;</span>file_ptr<span style="color: #66cc66;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;file not found<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;<br /><br /><span style="color: #66cc66;">&#125;</span></div></div><br /><br />any ideas??? thanks]]></description>
<pubDate>Tue, 26 Feb 2008 05:17:08 -0800</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t6234.html</guid>
</item>
						<item>
						<title>Re: Opening a file located on host pc</title>
<link>http://www.8051projects.net/forum-t6234.html</link>
<description><![CDATA[well the function calling seems ok..<br />some more details wud have been better...  cud u give a little more insight of the system? <br />which uart are u using hope u r using uart1 instead of uart0...  u will nwwd the right handshaking  to  read the file properly  also <br />M:&#092;&#092;Documents&#092;&#092;final project local&#092;&#092;book1.txt  is a long enough address  try <br />something shorter and without spaces in between<br /><br />ex k:&#092;&#092;project&#092;&#092;test.txt <br /><br />plz check n reply<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 15 Apr 2008 18:04:24 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t6234.html</guid>
</item>
				</channel>
				</rss>