ARM Technical Support Knowledge Articles

How can I use RVD to load my application into flash memory on the Cortex-M3 MPS RTSM model?

Applies to: RealView Development Suite (RVDS)


RVDS includes instruction accurate Real-Time System Models (RTSMs) of ARM development boards.

RVDS 4.1 adds an RTSM model for the Cortex-M3 Microcontroller Prototyping System (MPS) board from ARM. Please see the RVDS 4.1 RTSM User Guide for model details.

The default memory map of the Cortex-M3 MPS model provides 64MB of Flash at address 0x0 and 4MB of SSRAM at address 0x10000000. RVD cannot load an application image directly into the flash memory (only RAM). If you want to map RAM to address 0x0, please see the article here.

In order to load a binary image into flash, please follow the instructions below:

  1. In the "Connect to Target" window in RVD, right-click on your RTSM configuration (for the MPS model) and select "Configure...". This will open the "Model Configuration Utility" window as shown below. 

  1. Select the "MPSCortexM3CoreTile" component (default selection) and modify the "fname" model parameter for this component to point to a binary image file on your host PC filesystem.

The specified file will be loaded into flash memory at address 0x0 once you connect to the model in RVD.

Note: If your application was not linked to start from address 0x0 (e.g. 0x8000), the binary image requires padding bytes from address 0x0 because the flash loader will always load the file contents starting at address 0x0. Creating a suitable binary file is outside the scope of this article.

If you wish to load symbolic information for this image, you need to perform a "Symbols Only" image load in RVD. Open the "Target" menu and select "Load Image...". Select the ELF image and tick the "Symbols Only" box followed by "Open".

You will now be able to debug the application from flash memory with source level debug information.

Attachments: mps.bmp

Article last edited on: 2010-05-26 15:11:52

Rate this article

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