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

RS232 ASSIGN to Serial Window (uVision or dScope)

Documentation (uVision or dScope):
>The serial output may be also assigned to a PC >COM port using the ASSIGN command.

Could anybody give a working example,
how to do it for C167 microcontrollers ?

I doubt that works...

  • If you just type ASSIGN on the debugger command line, it will prompt you for the remaining parameters.

    You also need to set up the COM port from the debugger command line.

    "I doubt that works..."

    It does work!

  • commands:
    MODE COM1 57600
    ASSIGN COM1 > NUL
    work, but these commands do not redirect PC's COM1 to the Serial Window.

    Otherwise it asks for registers ?!
    < (input regeister) > (output register)

    Why these registers, if it's just a RS232 serial COM port of a PC ? Which are proper paramaters? What are these magic registers ?

    My application program is running in a real C167 microcontroller, not under debugger simulation.

  • You need to read the uVision Debug Commands online help; it describes each of the uVision Debug Commands - including telling you what the parameters mean!

  • http://www.keil.com/support/man/docs/mon166/mon166_debug.htm
    > Do not initialize the serial interface in
    > your user application.
    > The monitor configures the UART.

    Unfortunately, I need to communicate to my program directly (without monitor).
    For my application, monitor is only needed for Bootstrap, loading and as a simple TERMINAL.

    Where is this
    "uVision Debug Commands online help" ?

    Can You give me a link to this ?

  • "Where is this 'uVision Debug Commands' online help?"

    OK, back to basics:

    You need to start by reading the uVision Getting Started Guide, and working through the example projects in it.

    This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end.

    (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS*.PDF in your Keil folder)

  • Unfortunately, I need to communicate to my program directly (without monitor).
    For my application, monitor is only needed for Bootstrap, loading and as a simple TERMINAL.


    You have to use the "simulated serial mode" to connect uVision and your C167. It uses two unused I/O-pins. This will free the serial interface of the C167. See the "getting started...".

  • Thanks! It's working now. I had to disable "serial interrupt" in debugger target configuration.

    Best regards.