<?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>LPC MicrocontrollersのトピックRe: Data is logged in debug mode but not in released and flashed mode</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272936#M44905</link>
    <description>&lt;P&gt;Yes, that would be the suggested way.&lt;/P&gt;&lt;P&gt;For a non-semihosting solution, you would need a permanent storage (SD card) and a file system (usually FatFS).&lt;/P&gt;&lt;P&gt;FatFS usually comes with it's own versions of file io functions.&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 09:52:00 GMT</pubDate>
    <dc:creator>frank_m</dc:creator>
    <dc:date>2021-05-06T09:52:00Z</dc:date>
    <item>
      <title>Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272501#M44889</link>
      <description>&lt;P&gt;I am using MCUXpresso to develop C++ firmware on an LPC54018 (OM40003UL) development board. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me why the basic code I have written below is able to successfully open and create a log file in a specified directory when I run it in debug mode, but does not create the log when I build and run the released version after flashing it using the GUI Flash Tool?&amp;nbsp; Perhaps I need a configuration change?&lt;/P&gt;&lt;P&gt;fp = fopen("TempData.txt","w+");&lt;/P&gt;&lt;P&gt;fprintf(fp, "%8lu&amp;nbsp; %10f\n", g_DataNum, tempAve);&lt;/P&gt;&lt;P&gt;if (g_DataNum == LOG_TIME_IN_MIN * 60)&amp;nbsp; fclose(fp);&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 23:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272501#M44889</guid>
      <dc:creator>jmueckl</dc:creator>
      <dc:date>2021-05-05T23:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272719#M44896</link>
      <description>&lt;P&gt;I think, check the setup of both the debug and release version.&lt;/P&gt;&lt;P&gt;Where are the fopen/fprintf/fclose functions routed to, the onboard SD interface or semihosting (PC) ?&lt;/P&gt;&lt;P&gt;Semihosting is usually only enabled for the debug build, for good reasons.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 06:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272719#M44896</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-05-06T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272800#M44897</link>
      <description>&lt;P&gt;This article will help you understand how semihosting works&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-is-Semihosting/m-p/475390" target="_blank"&gt;https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/What-is-Semihosting/m-p/475390&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This should help you understand why it is not a good idea to use printf in release code.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 07:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272800#M44897</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2021-05-06T07:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272885#M44901</link>
      <description>&lt;P&gt;I am using fprintf's to print temperature data to a log file that can be evaluated after running a released version of the firmware.&amp;nbsp; I've worked with other firmware that did this.&amp;nbsp; Please advise.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 08:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272885#M44901</guid>
      <dc:creator>jmueckl</dc:creator>
      <dc:date>2021-05-06T08:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272929#M44904</link>
      <description>&lt;P&gt;I found some SDK examples for an SD card I can use with my development board.&amp;nbsp; I can get what I need from them.&amp;nbsp; Thank you for directing me guys.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 09:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272929#M44904</guid>
      <dc:creator>jmueckl</dc:creator>
      <dc:date>2021-05-06T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data is logged in debug mode but not in released and flashed mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272936#M44905</link>
      <description>&lt;P&gt;Yes, that would be the suggested way.&lt;/P&gt;&lt;P&gt;For a non-semihosting solution, you would need a permanent storage (SD card) and a file system (usually FatFS).&lt;/P&gt;&lt;P&gt;FatFS usually comes with it's own versions of file io functions.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 09:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Data-is-logged-in-debug-mode-but-not-in-released-and-flashed/m-p/1272936#M44905</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2021-05-06T09:52:00Z</dc:date>
    </item>
  </channel>
</rss>

