| |||
| 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.
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.
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 Chapter 3 Working with Images 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 Chapter 8 Reading and Writing Memory, Registers and Flash for instructions on how to use the following dialog boxes:
Upload/Download file from/to Memory dialog box
Flash Memory Control dialog box.