<?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>topic Write in a  file in Codewarrior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Write-in-a-file-in-Codewarrior/m-p/152760#M4437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Guys;&lt;/P&gt;&lt;P&gt;I include the following library in my code.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;#include&amp;nbsp;&amp;lt;stdlib.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to open a file and save what ever i get in debugger during running my experience.&lt;/P&gt;&lt;P&gt;Why this line of code doesn't work :&lt;/P&gt;&lt;P&gt;File *fp;&lt;/P&gt;&lt;P&gt;fp=fopen("C:\test.txt","w");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it gace error L1822 : for float number! although I add ansibi.lib. Without these two line, my code works fine.&lt;/P&gt;&lt;P&gt;Could you please share me your experinece?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 06:20:57 GMT</pubDate>
    <dc:creator>Idontunderstand</dc:creator>
    <dc:date>2011-07-22T06:20:57Z</dc:date>
    <item>
      <title>Write in a  file in Codewarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Write-in-a-file-in-Codewarrior/m-p/152760#M4437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Guys;&lt;/P&gt;&lt;P&gt;I include the following library in my code.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;#include&amp;nbsp;&amp;lt;stdlib.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to open a file and save what ever i get in debugger during running my experience.&lt;/P&gt;&lt;P&gt;Why this line of code doesn't work :&lt;/P&gt;&lt;P&gt;File *fp;&lt;/P&gt;&lt;P&gt;fp=fopen("C:\test.txt","w");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it gace error L1822 : for float number! although I add ansibi.lib. Without these two line, my code works fine.&lt;/P&gt;&lt;P&gt;Could you please share me your experinece?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Write-in-a-file-in-Codewarrior/m-p/152760#M4437</guid>
      <dc:creator>Idontunderstand</dc:creator>
      <dc:date>2011-07-22T06:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a file in CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Write-in-a-file-in-Codewarrior/m-p/152761#M4438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The manual Compiler_HC12.pdf states that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;"The ANSI–C library contains a fairly large interface for file I/O. In microcontroller&lt;/P&gt;&lt;P align="left"&gt;applications however, one usually does not need file I/O. In the few cases where one&lt;/P&gt;&lt;P align="left"&gt;would need it, the implementation depends on the actual setup of the target system.&lt;/P&gt;&lt;P align="left"&gt;It, is therefore impossible for Freescale to provide an implementation for these&lt;/P&gt;&lt;P&gt;features that the user has to specifically implement"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically usage of fopen, fprintf functions implies that there is a file system on the target. We do not provide a file system with our HC12 library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you trying to achieve with those File IO functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 13:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Write-in-a-file-in-Codewarrior/m-p/152761#M4438</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-07-22T13:38:30Z</dc:date>
    </item>
  </channel>
</rss>

