Create .log file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create .log file

269 Views
DemaQasem
Contributor II

Hello, 

I am using "Design Studio v3.4" to program an application on (s32k144 evb q100)

I tried to create a simple .txt file but when I debug and run the code it goes to "DefaultISR" 

here is my code: 

_______________________________________

#include <stdio.h>
#include <stdlib.h>
FILE *fp;
 
int main(void)
{
  for(;;)
  {
     fp=fopen("file2.txt", "a");
     fprintf(fp,"I am writing to file2.txt \n");
     fclose(fp);
  }
}

 

Tags (2)
0 Kudos
Reply
1 Reply

222 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @DemaQasem 

It seems that it is not supported. Check the following threads. They have information related to this topic. 

undefined reference to `fopen'

How it is possible to create a txt file in s32 design?

 

B.R.

VaneB

0 Kudos
Reply