Is it possible to direct the output of arm semihosting to a file? Sysprogs forums › Forums › VisualGDB › Is it possible to direct the output of arm semihosting to a file? This topic has 2 replies, 2 voices, and was last updated 3 years, 9 months ago by support. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts March 11, 2021 at 12:56 #30149 AEHadiParticipant Now that I have fast semihosting setup. It would be very useful to be able redirect the output to a file. I understand that you can right click on the console and choose save to file. However is there a way to do this automatically? March 11, 2021 at 16:15 #30150 AEHadiParticipant I have also used stdio’s IO operations like the code below. printf(“bla\n”); char str1[] = “towrite\n”; //scanf(“%s”, str1); FILE* fp = fopen(“SemiOut.txt”, “w”); //fprintf(fp, “%s”, “ToWrite\n”); fwrite(str1, 1, sizeof(str1), fp); fclose(fp); However these did not do anything in hardware. Only in simulation. This reply was modified 3 years, 9 months ago by AEHadi. March 16, 2021 at 16:16 #30164 supportKeymaster Hi, Please try using VisualGDB Project Properties -> Embedded Debug Tweaking to enable saving of various output types to files. If you would like to access the files on the Windows machine from the embedded targets, please consider using the Test Resource Manager API. Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In