ARM Technical Support Knowledge Articles

MONITOR DATA AREA

Applies to: MON51 Target Monitor

Answer


Information in this article applies to:


SYMPTOMS

I am configuring the 8051 monitor for my target system. I have a strange memory layout that gives me the maximum amount of XDATA and CODE memory, but it is not exactly von Neumann.

I'm using a 128K RAM that may be configured to work in 1 of 2 modes.

I'm using a chip with 8K of on-chip FLASH memory. I've programmed the monitor to start at address 0000h in the on-chip FLASH. I've configured everything so that my target programs start at address 2000h.

I modified the monitor INSTALL.A51 file so that the monitor starts in Mode 2 or my hardware design. During code writes, the monitor switches to Mode 1, writes to the XDATA address, and switches back to Mode 2. This works fine for uploading code.

The problem is that things like breakpoints and single-stepping do not seem to work.

I narrowed this down to the monitor data area. After reading about this it seems that the monitor data area MUST be von Neumann memory. It cannot use the memory configuration that I have designed.

Is there a work-around for this?

CAUSE

This problem is caused by the MON51.LIB library provided with C51 Version 6.21 and earlier. In this revision of MON51, there were two problems.

  1. uVision wrote to the vonNeumann Code when it should have written to XDATA. Since this is the same in von Neumann wired memory, it was not detected for a long time. This problem is solved at least since version 2.20 of uVision.
  2. The monitor did not use the WR_CODE function for its own memory area (256 bytes). This is solved this in a 'special' version of the library (MON51X.LIB) which is attached to this article.

RESOLUTION

This problem is resolved in C51 Version 7.01 and later. You may download the latest updates from the Keil Website.

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2005-07-09 10:42:20

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential