Create .log file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Create .log file

925 次查看
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);
  }
}

 

标记 (2)
0 项奖励
回复
1 回复

878 次查看
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 项奖励
回复