8.5.6. Setting Flash memory

Flash memory blocks are opened for access when you write to Flash. This displays the Flash Memory Control dialog box, for example when you load an image.

To write to Flash memory interactively:

  1. Connect to your target, load an image, and write to Flash, as described in Working with Flash.

  2. Select View → Pane Views → Memory to display the Memory pane.

    Start addresses can be set using in-place editing or using the context menu.

  3. Right-click in the first address in the window to display the context menu.

  4. Select Set New Start Address... and enter 0x24000000 as the new start address.

    This is colored green, indicating Flash.

  5. Right-click in the first byte at this address.

  6. Select Set Value... from the context menu.

  7. Enter the new value 0xA0 at the prompt.

  8. Click Set to confirm.

    This displays the Flash Memory Control dialog box to enable you to access the open Flash, shown in Figure 8.2.

  9. Click Write to write to the chosen Flash location. Monitor the changes in the Memory pane as memory is updated. The Flash Log confirms the Flash operation.

  10. Click Erase to erase the chosen Flash block.

  11. Click Flash to display details of the Flash memory, shown in Figure 8.6.

    Figure 8.6. Flash memory details

    Flash memory details

    You can also click Details to display information about the open Flash block.

  12. Click Erase to erase the chosen Flash block.

  13. Click Close to close the Flash Memory Control dialog box.

Note

You can also select Debug → Memory/Register Operations → Flash Memory Control..., from the Code window main menu, to display the Flash Memory Control dialog box during your debugging session.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential