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

serial interface on MCB167-NET while running debugger

Hi,

i'm using MCB167-Net board with uvision2. I want to connect a serial printer to this board. But since this board uses the same port to download monitor 166 and my code in the RAM, how should I test my printer?

Regards

Sonali

Parents
  • You can test the port by two methods;

    1) Use a simulated serial port for the monitor/debugger. Details are in the documentation somewhere.

    2) Use the port by not reserving it's vector space (under L166 misc. tab in the project) and disabling it as a control in the Debug/driver/settings sub-window of the project. You then have to use \NMI to stop the program. It works best if the settings for the monitor communications match the settings the target program is using. Otherwise, you may have to restart it from the beginning after stopping since the settings can be corrupted.
    Best luck

Reply
  • You can test the port by two methods;

    1) Use a simulated serial port for the monitor/debugger. Details are in the documentation somewhere.

    2) Use the port by not reserving it's vector space (under L166 misc. tab in the project) and disabling it as a control in the Debug/driver/settings sub-window of the project. You then have to use \NMI to stop the program. It works best if the settings for the monitor communications match the settings the target program is using. Otherwise, you may have to restart it from the beginning after stopping since the settings can be corrupted.
    Best luck

Children