Keil Logo

input/output redirection in IDE

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Alexander Sorockin
Posted
19-Nov-2003 10:18 GMT
Toolset
C51
New! input/output redirection in IDE
Hi All,

I am new to the µVision2 environment, so I don't know all the ropes yet. My question is this: I have a long text file which represents a data stream. Can I somehow feed this file to a program being debugged in the IDE and save its output? I cannot debug the program on the actual device because it doesn't exist yet.

Thank you
Read-Only
Author
Jon Ward
Posted
19-Nov-2003 16:35 GMT
Toolset
C51
New! RE: input/output redirection in IDE
I'll assume you are talking about serial data for the serial port. If that's the case, you could hook the debugger simulated serial port to a PC COM port (http://www.keil.com/support/docs/1981.htm) and then hook HyperTerm to another COM port, wire the 2 COM ports together and send the data from HyperTerm to the uVision Simulator.

Another way to do this is shown at http://www.keil.com/support/docs/2262.htm.

If this is the way you want to go, also take a look at http://www.keil.com/support/docs/2218.htm.

Jon
Read-Only
Author
Alexander Sorockin
Posted
20-Nov-2003 07:53 GMT
Toolset
C51
New! RE: input/output redirection in IDE
Is it possible to simulate CAN in some similar way? My device is based on a T89C51CC01(02) and will be communicating with the outer world by means of CAN.
Read-Only
Author
Hans-Bernhard Broeker
Posted
20-Nov-2003 11:54 GMT
Toolset
C51
New! RE: input/output redirection in IDE
To simulate CAN input, I think there's no other chance but to use a SIGNAL function and/or invidual debugger functions that inject single messages on request.

CAN message frames are sufficiently more complicated than simple serial line input to make it all but impossible to read them from a file.
Read-Only
Author
Alexander Sorockin
Posted
20-Nov-2003 13:35 GMT
Toolset
C51
New! RE: input/output redirection in IDE
The part of the program I am currently working on treats CAN messages as a sequence of data blocks. This sequence can be represented as a HEX or binary file. The problem is how to get this file into the program running in the IDE. I think I'll have to set up a COM device to emulate a CAN message stream.

Cheers
Read-Only
Author
Support Keil
Posted
20-Nov-2003 13:49 GMT
Toolset
C51
New! RE: input/output redirection in IDE
Use one of the user memory types (S: T: U: V:). See http://www.keil.com/support/docs/2397.htm
You can read/write the CAN messages with signal functions. This space can be loaded/saved with the LOAD/SAVE command of the debugger.
Read-Only
Author
marcu andy
Posted
23-Nov-2003 04:19 GMT
Toolset
C51
New! RE: input/output redirection in IDE
On some devices like the Atmel 89C51RD2 and Analog Devices ADuC812, the user-defined memory space V: simulates the on-chip EEPROM memory.

In my knowledge, 89C51CC01 belong to 89C51RD2 family.
So we can simulate EEPROM memory on this chip using V: memory space.
Is this afirmation corect?!!

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.