Keil Logo

MON51: CONNECTION TO TARGET SYSTEM LOST


Information in this article applies to:

  • C51 All Versions

QUESTION

I have configured the monitor for my target hardware and have successfully downloaded my program. However, when I start running the code (either by single-step or by run) I receive the following error:

CONNECTION TO TARGET SYSTEM LOST

and I must reset the hardware. What is wrong with my configuration?

ANSWER

This error message is generated when the monitor program running on the target hardware loses communication with the monitor driver running on the PC. This is typically caused by changes (in your program) to the serial UART or to the baudrate timer. Take heed of the following:

  • Make sure that you do not change the UART configuration. If you have code that initializes the UART used by the monitor, #ifdef it out.
  • Do not change the timer settings for the baudrate timer.
  • If you use a monitor that relocates itself into high memory leaving your program to start at 0x0000 in CODE space, make sure that you leave space for the serial port interrupt vector.

SEE ALSO

Last Reviewed: Friday, January 30, 2015


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.