<?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 IDEのトピックRe: fprintf not completing</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331893#M7354</link>
    <description>&lt;P&gt;Works here.&lt;/P&gt;&lt;P&gt;Which MCU are you using and which debug probe?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Aug 2021 16:10:37 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2021-08-30T16:10:37Z</dc:date>
    <item>
      <title>fprintf not completing</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331860#M7353</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to simply write some data to a file using the semihost and corresponding redlib libraries. Below is the code I am using - I can create the file in the correct directory, however, it just stalls when it gets to fprintf. I've read a few posts here saying that the issue is normally not using the semihost-compatible C libraries, but I've made this fix and cannot get the fprintf function to work. Can someone please help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;FILE *fp = fopen("C:\\Users\\BApoo\\Desktop\\Test.txt","w");&lt;/P&gt;&lt;P&gt;if(fp == NULL)&lt;BR /&gt;{&lt;BR /&gt;printf("Error opening file!\n");&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;const char *text = "This is a string which is written to a file.";&lt;/P&gt;&lt;P&gt;fprintf(fp, "%s\n", text);&lt;BR /&gt;fflush(fp);&lt;BR /&gt;fclose(fp);&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 14:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331860#M7353</guid>
      <dc:creator>bapoo1</dc:creator>
      <dc:date>2021-08-30T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: fprintf not completing</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331893#M7354</link>
      <description>&lt;P&gt;Works here.&lt;/P&gt;&lt;P&gt;Which MCU are you using and which debug probe?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 16:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331893#M7354</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-08-30T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: fprintf not completing</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331926#M7356</link>
      <description>&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;&lt;P&gt;I am using the QN9080SIP with a SEGGER J-link probe. If it is of any use, I am using a Keil ULINK 2 Debug Adapter to talk with the MCU over SWD.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 17:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/fprintf-not-completing/m-p/1331926#M7356</guid>
      <dc:creator>bapoo1</dc:creator>
      <dc:date>2021-08-30T17:11:24Z</dc:date>
    </item>
  </channel>
</rss>

