Hello Everybody,
I want to use keil simulator (or any other keil capability) for following purpose.
In my actual target program, I have created functions for image sensor that captures Image and transmit it to PC using serial communication (COM1). Then I am using PC based tools to analyze that image on PC.
Now, I want to do further image processing work on PC [Host based development], so.
1) Can keil compiler allows me to read any file, that is located at hard disk, using some sort of FILE pointer [as conventional C]
2) Can Keil tools, allows me to print immediate variable values using printf("") like commands.
Thanks in advance, Saurabh
1)I am asking about file strored on hard-disk. And I am perticulaerly asking about Host-based program on PC. 2) I am asking about use of printf() like general I/O functions... That is also for pure host based devlopment using keil compiler.. here I want to print some status msgs using printf.
Still not sure if I understand you correctly but I assume you want to compile something using the Keil suite and use it on the -simulator- and interact with the PC side.
I thought you wanted to use the Keil compiler to write PC applications.
Regards, Joost Leeuwesteijn
I am not using keil to write PC side applications..!!
I have to test some of my outputs [say image data arrived from image sensor].. in form of raw file.
Now, i want to use that binary data in form PC file using file pointers, to perform some tests on that binary raw files... [for debugging purpose only]
"I am not using keil to write PC side applications..!!"
So this is not the correct forum for questions about this part of your project!
You need to find the support forum for the particular native PC compiler that you are using.
You could convert the PC data file (I'm assuming the data is binary) into an Intel HEX file using the HEX2BIN utility. Then, when you start the debugger, you can use the LOAD command to load the contents of the HEX file into some part of memory. Then, your program could process that memory area as though it were the actual data that came from your image sensor.
Refer to the following knowledgebase article which gives a couple of different ways to do this:
http://www.keil.com/support/docs/2175.htm
Jon