Keil Logo



I'm using MON51 and dScope to debug my RTX51 application. Everything works fine until I call the os_start_system library routine. Then, my application crashes. What's going on? Am I missing something in the configuration?


This typically happens when you debug with MON51 because the CODE space and XDATA space overlap. When RTX51 initializes its data structures in XDATA, it overwrites part of the CODE space. Use the linker options to relocate XDATA so that it doesn't overlap CODE.

For example, if your monitor configuration locates your target program at 0, you should start your XDATA at something like 0x4000 or 0x8000, depending on the available RAM.

Last Reviewed: Monday, June 7, 2004

Did this article provide the answer you needed?
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.