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
Further information.
I am using, philips [nxp] 2138 controller, and one 100k COMS sensor, after execution of my target program, sensor generates .raw [picture] file. and transmit it to PC through COM port.
Which hard disk are you refering to? Do you have an HD connected to your target? Or do you want to access the PC's HD from your target? The first will require some kind of driver code, the second will not be possible really, unless you write some kind of protocol to "talk" to a PC side piece of software.
Not quite sure what you mean here.
Regards, Joost Leeuwesteijn
http://www.keil.com/support/man/docs/uv3/
In particular, look at the section on Debug Functions and the Simulation Script Templates
Dear sir,
1) I am asking about file strored on hard-disk. And I am perticulaerly asking about Host-based program on PC.
Not in micro-controller environemt.. [for such debugging purpose-only]
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.
Thanks neil, These are what i actally wanted..
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.
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