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

Using debugger with real serial port

Has anybody had trouble getting the simulator to use a real serial port instead of the builtin serial terminal?

Here is my configuration thats loaded on debug:
MODE COM1 19200, 0, 8, 1
ASSIGN WIN <NUL >NUL
ASSIGN COM1 <SIN >SOUT

My simulated program can output serial data through the PC serial port all day long without problems, however when my application reads a byte the simulation hangs.

My code runs fine on the real hardware, and it runs fine in the simulator using the builtin serial terminal window, it only hangs when reading a byte, with the assignment to COM1:

Ive tested my cables, so i know thats not an issue here. Ive tried the above conf with out assigning NUL to WIN as well, no luck.

Any thoughs or suggestions would be greatly appreciated.

Parents
  • Still cant get bidirectional serial support in the simulator. I can send bytes out, nothing in. And ive tried poll based routines, and interrupt based ones, there must be a quirk in the simulator.

    I'm using an aduc842, anybody else had this problem? I guess i should start a trouble ticked with keil.

Reply
  • Still cant get bidirectional serial support in the simulator. I can send bytes out, nothing in. And ive tried poll based routines, and interrupt based ones, there must be a quirk in the simulator.

    I'm using an aduc842, anybody else had this problem? I guess i should start a trouble ticked with keil.

Children
  • I'm a couple of days into using Keil and I'm having the same problem. When I go into debug, Keil hangs if anything is received on Comm1. If I disconnect my 232 source I can exit debug without any problems, but as soon as data is put on the line, I have to dump out. Did you ever find a solution to this?