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?
Have you tried Keil Support?
infocenter.arm.com/.../index.jsp infocenter.arm.com/.../index.jsp
Have you implemented any hosting?
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.
infocenter.arm.com/.../index.jsp
From above web address, I see the my setting with following: Semihosting Enabled => True Vector => 8 Arm svc num => 0x123456 Thum svc num => 0xAB
I am not so expert with RVDS. Please give me the detailed procedure.