Keil Logo

RTX51: Keil µVISION Debugger Won't Halt RTX51 Using MON51


Information in this article applies to:

  • RTX51 Version 7

SYMPTOM

While debugging an RTX51 application on a Cypress EZ-USB FX or FX2 board using MON51, clicking the Halt button gives the error:

  Failed to stop application!

Setting breakpoints and single-stepping work OK and the Stop Program Execution with Serial Interrupt checkbox is checked. What could be wrong?

CAUSE

RTX51 disables serial interrupts by default. With serial interrupts disabled and no breakpoints set, MON51 cannot gain control of the target board once it starts running.

RESOLUTION

Configure RTX51 to enable the appropriate serial interrupt by setting the correct initialization value for ?RTX_IE_INIT in the RTXSETUP.INC file. Cypress FX and FX2 boards use the standard 8051 serial interrupt for SIO-0. To enable the this serial interrupt (bit 4 in IE) use the following value:

  ?RTX_IE_INIT  EQU  10H  ; Enable 8051 serial interrupts

To debug through SIO-1 on Cypress FX and FX2 boards, enable SIO-1 interrupts (bit 6 in IE) as follows:

  ?RTX_IE_INIT  EQU  40H  ; Enable Cypress FX/FX2 SIO-1 interrupts

Other microcontrollers might use this bit for a second serial port also. Check the manufacturer's data sheet for your microcontroller to be sure.

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


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.