We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using the 'Arm Workbench IDE 4.0'. And I can compile the file access functions
like Following. But when run the image using the 'RealView Debugger v4.0', I can't
find out the xxx.txt file withing the system and ARM tool's directory.
FILE *pFile=NULL;
pFile = fopen(50, (char*)"c:\\temp\\xxx.txt", "wt"); // 50 is file identifier
rv=ferror(pFile);
rv=fprintf(pFile, "test\n");
if(pFile){
fclose(pFile);
pFile = NULL;}
I could have used the 'printf' with debugger tool's stdio so I think that there may be method for file management.
Can I use the file management functions?
And if so how?
I don't know about implementing hosting. And just used the printf with StdIO. My concern is how to access file in the my win7 file system with fopen of firmware source code.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3652.html
From above web address, I see the my setting with following: Semihosting Enabled => True Vector => 8 Arm svc num => 0x123456 Thum svc num => 0xAB
What is the proper option for host file access?
If this is not the proper approach, how can I handle the host file from firmware fopen?