Keil Logo

MON390: MOVX CALLED AFTER WR_CODE RETURNS


Information in this article applies to:

  • C51 Version 7.05

SYMPTOM

When configuring the MON390 INSTALL.A51 file for writing to code space, the WR_CODE function (shown below) must be modified to match the hardware configuration.

WR_CODE:        MOVX    @DPTR,A
                RET

In most cases, a simple MOVX @DPTR,A is all that is required.

In situations that require customization, the WR_CODE function seems to work fine. However, something seems to overwrite or corrupt code memory.

CAUSE

In versions of MON390 shipped with C51 Version 7.05 and earlier, a MOVX @DPTR, A instruction was invoked directly in the MON390 library. This may cause code memory corruption in some situations.

RESOLUTION

C51 releases Version 7.06a and later include the corrected monitor library. You may download the latest updates from the Keil Website.

SEE ALSO

Last Reviewed: Friday, July 22, 2005


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.