| Details |
Message |
|
Read-Only
Author Saurabh P.
Posted 22-Nov-2006 05:48 GMT
Toolset ARM
|
 Host based simulation
Saurabh P.
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
|
|
|
Read-Only
Author Saurabh P.
Posted 22-Nov-2006 05:50 GMT
Toolset ARM
|
 RE: Host based simulation
Saurabh P.
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.
|
|
|
Read-Only
Author Joost Leeuwesteijn
Posted 22-Nov-2006 07:58 GMT
Toolset ARM
|
 RE: Host based simulation
Joost Leeuwesteijn
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]
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.
2) Can Keil tools, allows me to print immediate variable values
using printf("") like commands.
Not quite sure what you mean here.
Regards,
Joost Leeuwesteijn
|
|
|
Read-Only
Author Andy Neil
Posted 22-Nov-2006 10:40 GMT
Toolset None
|
 RTFM
Andy Neil
http://www.keil.com/support/man/docs/uv3/
In particular, look at the section on Debug Functions and
the Simulation Script Templates
|
|
|
Read-Only
Author Saurabh P.
Posted 22-Nov-2006 11:47 GMT
Toolset None
|
 RE: RTFM
Saurabh P.
Thanks neil, These are what i actally wanted..
|
|
|
Read-Only
Author Saurabh P.
Posted 22-Nov-2006 11:46 GMT
Toolset ARM
|
 RE: Host based simulation
Saurabh P.
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.
|
|
|
Read-Only
Author Joost Leeuwesteijn
Posted 22-Nov-2006 12:07 GMT
Toolset ARM
|
 RE: Host based simulation
Joost Leeuwesteijn
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
|
|
|
Read-Only
Author Saurabh P
Posted 2-Dec-2006 06:53 GMT
Toolset ARM
|
 RE: Host based simulation
Saurabh P
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]
|
|
|
Read-Only
Author Andy Neil
Posted 2-Dec-2006 10:24 GMT
Toolset ARM
|
 Off-Topic
Andy Neil
"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.
|
|
|
Read-Only
Author Jon Ward
Posted 2-Dec-2006 13:47 GMT
Toolset ARM
|
 RE: Host based simulation
Jon Ward
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
|
|