| |||
| Home > Programming Flash with RealView Debugger > Programming an image into Flash > Writing the image to Flash | |||
To program an image into Flash using RealView Debugger:
Assign the BCD file that describes the memory map and specifies the FME file to the target connection (see Assigning your BCD file to a target connection).
Build your Flash image using the linker setting Link_advanced.Ro_base.
Make sure that this points to a valid Flash address.
Connect to the target. See Chapter 2 Connecting to Targets for more details.
Queue your Flash image for programming into the Flash device. You can do this using one of the following methods:
Load the Flash image using the Load File to Target dialog box, or select an image from the Target ? Recent Images list. See the chapter that describes working with images in the RealView Debugger v1.8 User Guide for instructions on how to load an image.
Load the Flash image using the Upload/Download file from/to Memory dialog box.
In both cases, the Flash Memory Control dialog box is displayed.
Click Write on the Flash Memory Control dialog box to write the image to the Flash device. RealView Debugger uses the information and Flash routines in the FME file that is specified in the BCD file.
See the chapter that describes reading and writing memory, registers, and Flash in the RealView Debugger v1.8 User Guide for instructions on how to use the following dialog boxes:
Upload/Download file from/to Memory dialog box
Flash Memory Control dialog box.