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
  • Are you sure that your COM port and cables are all working and correctly wired?

    Have you tried just using hypoterminal (or whatever) on that COM: port?
    Does it receive OK?


    I am fairly certain that my serial connection is good. I have an rs232 analyzer ( specifically http://www.fte.com/sta01.asp ) I'm also using a breakout box as well. I have minicom on a macintosh, and hyperterm on the PC, i have verified that serial data with my cables works in both directions.

    Ive tested the program in the simulated 8052 with mincom on the other machine, to make sure there werent any errors with the other device i am interfacing to.

Reply
  • Are you sure that your COM port and cables are all working and correctly wired?

    Have you tried just using hypoterminal (or whatever) on that COM: port?
    Does it receive OK?


    I am fairly certain that my serial connection is good. I have an rs232 analyzer ( specifically http://www.fte.com/sta01.asp ) I'm also using a breakout box as well. I have minicom on a macintosh, and hyperterm on the PC, i have verified that serial data with my cables works in both directions.

    Ive tested the program in the simulated 8052 with mincom on the other machine, to make sure there werent any errors with the other device i am interfacing to.

Children
No data