This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fopen fails with absolute path

Am trying to experiment file based operations inside FVP environment , my intention is to pass the inputs via FILE for a Unit testing a function inside FVP  in DS.  

FILE *fp = fopen("D:\arm_ds5\sve2_matmul_f64\test.txt","r");
if(fp == NULL)
printf("cannot read file ");   --> always getting this print since File is not found , Kindly suggest the workaround for the same

Parents
  • realised the mistake , absolute path had to be given as per below format 

    FILE *fp = fopen("D:\\arm_ds5\\sve2_matmul_f64\\test.txt","r"); but couldnt udnerstand why the "set semihosting enabled 0" is needed , becuase it works without this setting as well 

Reply
  • realised the mistake , absolute path had to be given as per below format 

    FILE *fp = fopen("D:\\arm_ds5\\sve2_matmul_f64\\test.txt","r"); but couldnt udnerstand why the "set semihosting enabled 0" is needed , becuase it works without this setting as well 

Children