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

Connection problems solved

For 8 months now I've been having an occaisional but annoying problem connecting uVision debugger to my C167 via the RS-232 serial port and Monitor-167. It simply wouldn't connect, and when I hit Stop Debugging uVision would crash. I think I've finally solved the problem, after finding a knowledgebase article about DScope.

Symptoms:
uVision would occasionally say Connection To Target System Lost! when it shouldn't have. There was no hardware problem because Phytec's Flashtools connected just fine every single time. I found that I had to reboot, connect Flashtools, then disconnect, then connect uVision, then reboot (don't reboot before connecting uVision), then hit Try Again to connect uVision. From these symptoms, I expect that uVision's Monitor-167 interface serial port handling is poorly done.

This was using Win2K on an IBM A31.

Solution:
Fix up the Windows properties for the serial port:
1. Disable the serial port FIFO.
2. Set the baud rate for the port above that required by uVision.
3. Turn off all flow control for the port.

Doing this seems to have eliminated the problem.

I hope this helps someone out there.

Parents
  • I've got the same problem, but I wasn't able to solve it by fixing the Windows properties the way Michael described.
    It's a strange thing because I was working for more than a year without a problem and on one day the problems begun.
    I had a project that established the connection without a problem so I used this project to make the connection and then opened my current project to work on (so once the connection is established the transfer works, but don't reset the C167...).
    A few days ago I tried again to establish the connection with my current project and it worked. It seemed that something had flipped a switch because from then on it worked... But only for a few days! Now I've got the same problem again. The same project and the same settings, nothing has changed (except the program but I don't play around with the serial interface).

    Does anyone have an idea?

    I use uVision2 on a W2K machine.

Reply
  • I've got the same problem, but I wasn't able to solve it by fixing the Windows properties the way Michael described.
    It's a strange thing because I was working for more than a year without a problem and on one day the problems begun.
    I had a project that established the connection without a problem so I used this project to make the connection and then opened my current project to work on (so once the connection is established the transfer works, but don't reset the C167...).
    A few days ago I tried again to establish the connection with my current project and it worked. It seemed that something had flipped a switch because from then on it worked... But only for a few days! Now I've got the same problem again. The same project and the same settings, nothing has changed (except the program but I don't play around with the serial interface).

    Does anyone have an idea?

    I use uVision2 on a W2K machine.

Children
No data