KEIL UVISION 4 / Target: ARM
I need to simulate a program in KEIL/ARM, which receive long sequence of inputs from a file in filesystem.
Please help ASAP.
InderjitSingh
Respected Sir, 1. I am porting a program which is using standard C/C++ library functions such as fopen(), printf(),fscanf() to an ARM target.In other words, functionality of the program works fine for ARM target, just need to give the sequence of inputs from Host's filesystem.
i.e. probably need to work in semihosting environment using Keil. (am comparatively a beginner in that).
2. Further, when function call printf() / fopen() / fscanf() is made the debugger iterates infinitely at: BKPT 0xAB
2.1 I have tried using _sys_open() instead of fopen(), but same results.
Beginner: Anything more needed, please ask for the same. But i need help.
Which microcontroller are you using?
Where is this test file located?
Have you used sample projects to manipulate/read/write files on your device?
1. STM32F103RB [ARM 32-bit Cortex-M3 Microcontroller]
2. Test file (composed of sequence of testinputs), is placed in the Project's directory itself.
3. Couldn't locate any example project: which manipulates/handles files in Host/OS Filesystem (i.e. Win7 Filesystem).
What do you mean files are in your project directoty?
Do you have a development board with an SD card where you can test your code?
In the keil folder there are projects you could use, try this one:
Keil\ARM\Boards\Keil\MCBSTM32\RL\FlashFS\SD_File
if this one is not ok, then try others.