<?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 Re: fopen() and fprintf() with Semihosting on Kinetis K10 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349502#M17155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there no one with an idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 13:36:09 GMT</pubDate>
    <dc:creator>peterkrause</dc:creator>
    <dc:date>2014-10-28T13:36:09Z</dc:date>
    <item>
      <title>fopen() and fprintf() with Semihosting on Kinetis K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349501#M17154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do some automated unit testing of my firmware modules. I'm using Sput Unit Testing Framework and want to save the results in a text file via Semihosting. For this purpose I need fopen() and fprintf() to open a file and write text to it. At the moment I'm able to output my reults to the console via printf (I changed all fprintf() to printf() in Sput Framework). But I was not able to get working fopen() and fprintf(). In the EWL C reference manual is a chapter about the configuration of the library. I set "_EWL_OS_DISK_FILE_SUPPORT" macro to "1" in the "ansi_prefix.ARM.h" header file to enable supoort of the functions, but it didn't work.&lt;/P&gt;&lt;P&gt;How can I enable the file support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;P&gt;Kinetis MK10DX256VLH7&lt;/P&gt;&lt;P&gt;Segger J-Link Debugger&lt;/P&gt;&lt;P&gt;CodeWarrior 10.6&lt;/P&gt;&lt;P&gt;Windows 7 64-Bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 07:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349501#M17154</guid>
      <dc:creator>peterkrause</dc:creator>
      <dc:date>2014-10-24T07:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: fopen() and fprintf() with Semihosting on Kinetis K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349502#M17155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there no one with an idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 13:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349502#M17155</guid>
      <dc:creator>peterkrause</dc:creator>
      <dc:date>2014-10-28T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: fopen() and fprintf() with Semihosting on Kinetis K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349503#M17156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to enable the file support, an OS and a filesystem is needed first.&lt;/P&gt;&lt;P&gt;if you do not use OS such like MQX in your application, then, a file name and his path can not be resolved and fopen can not recognize it.&lt;/P&gt;&lt;P&gt;regarding your case, even if Marco "_EWL_OS_DISK_FILE_SUPPORT" is enable, you can't use fopen this feature in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:32:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349503#M17156</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-10-29T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: fopen() and fprintf() with Semihosting on Kinetis K10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349504#M17157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks for your answer. With this info I'm not able to enable the file support, but I know the problem now.&lt;/P&gt;&lt;P&gt;At the moment I send my results to the console via printf() and save the console in a text file using the retarget option in the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fopen-and-fprintf-with-Semihosting-on-Kinetis-K10/m-p/349504#M17157</guid>
      <dc:creator>peterkrause</dc:creator>
      <dc:date>2014-10-29T07:44:17Z</dc:date>
    </item>
  </channel>
</rss>

