I am using MCUXpresso to develop C++ firmware on an LPC54018 (OM40003UL) development board.
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? Perhaps I need a configuration change?
fp = fopen("TempData.txt","w+");
fprintf(fp, "%8lu %10f\n", g_DataNum, tempAve);
if (g_DataNum == LOG_TIME_IN_MIN * 60) fclose(fp);