<?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>MCUXpresso General中的主题 Re: semihosting fopen path</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1357082#M4392</link>
    <description>&lt;P&gt;Yes, the IDE folder is really not ideal, and the process might not have write permission.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 08:56:54 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2021-10-18T08:56:54Z</dc:date>
    <item>
      <title>semihosting fopen path</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1355770#M4378</link>
      <description>&lt;P&gt;I am using the semihosting library with file support and a JLink debugger for an iMXRT1064 project.&lt;/P&gt;&lt;P&gt;I can &lt;STRONG&gt;fopen&lt;/STRONG&gt; a file for write just fine if I use an absolute path e.g.&amp;nbsp;"C:\\MyProject\\my_log.csv".&lt;/P&gt;&lt;P&gt;As I am working with others, it would be nice to use a project working directory relative path.&lt;/P&gt;&lt;P&gt;If I use a path with just a filename in &lt;STRONG&gt;fopen&lt;/STRONG&gt; e.g.&amp;nbsp; "my_log.csv", the file appears to open and fprintf looks to work. &lt;STRONG&gt;However&amp;nbsp;&lt;/STRONG&gt;the file can't be found in any obvious location on my PC. Where would such a file be written to by default? Is there perhaps a project setting for the default working folder that I have missed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 10:20:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1355770#M4378</guid>
      <dc:creator>billchadwick</dc:creator>
      <dc:date>2021-10-14T10:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: semihosting fopen path</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1355772#M4379</link>
      <description>&lt;P&gt;MCUXpresso IDE v11.3.1 [Build 5262] [2021-04-02]&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 10:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1355772#M4379</guid>
      <dc:creator>billchadwick</dc:creator>
      <dc:date>2021-10-14T10:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: semihosting fopen path</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1356701#M4388</link>
      <description>&lt;P&gt;This is what I have in my gcov library (see &lt;A href="https://mcuoneclipse.com/2014/12/26/code-coverage-for-embedded-target-with-eclipse-gcc-and-gcov/" target="_blank"&gt;https://mcuoneclipse.com/2014/12/26/code-coverage-for-embedded-target-with-eclipse-gcc-and-gcov/&lt;/A&gt; &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  /*
   * Creating a file without absolute path.
   * With J-Link and MCUXpresso IDE 11.4.1, this file gets created in the IDE installation directory (C:\NXP\MCUXpressoIDE_11.4.1_6260\ide).
   * Where the file gets created (current directory of the semihosting process on the host) really depends on the probe firmware and is non-standard.
   * See as well:
   * https://developer.arm.com/documentation/dui0058/d/semihosting/semihosting-swis/sys-open--0x01-?lang=en
   */
  file = fopen ("gcov_text.txt", "w");
  fputs("hello world with file I/O\r\n", file);
  fclose(file);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 11:16:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1356701#M4388</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-10-16T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: semihosting fopen path</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1357020#M4390</link>
      <description>&lt;P&gt;Thanks for that Erich.&lt;/P&gt;&lt;P&gt;I have had some success using __FILE__&amp;nbsp; and popping up a few directories.&lt;/P&gt;&lt;P&gt;I doubt my co-developers would expect/want log files going to the IDE folder.&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1357020#M4390</guid>
      <dc:creator>billchadwick</dc:creator>
      <dc:date>2021-10-18T08:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: semihosting fopen path</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1357082#M4392</link>
      <description>&lt;P&gt;Yes, the IDE folder is really not ideal, and the process might not have write permission.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/semihosting-fopen-path/m-p/1357082#M4392</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-10-18T08:56:54Z</dc:date>
    </item>
  </channel>
</rss>

