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

KEIL/ARM simulation: test inputs from file

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

Parents
  • 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.

Reply
  • 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.

Children