10.8.6. Running the example

Follow these steps to execute/debug the image with ADW, EmbeddedICE and a PID board:

  1. Ensure REMAP link LK18 is OUT to Flash-download.

  2. Switch on the power to the PID board and launch ADW.

  3. In ADW, select Configure debugger from the Options menu and select remote_a.

  4. Select Flash download from the File menu and enter the name of the ROM image (scatter.bin).

    The Command Window displays:


    ARM Flash Programming Utility
    AT29C040A recognised
    Input File Is : - (your_ROM_filename)
    Please enter the number of the first sector to write
    Default is to start at sector 0
    Start at sector 0x0

  5. Click Enter to start the Flash programming.

    The Command Window displays the progress as the Flash is programmed, and a message when the operation is complete:


    Flash written and verified successfully

  6. Exit ADW and switch off the power to the PID board.

  7. Put REMAP link LK18 IN to execute from Flash.

  8. Switch on the power to the PID board and launch ADW.

  9. In ADW, select Load from the File menu and enter the name of the debug image (scatter.axf).

  10. Select Debugger Internals from the View menu and make vector_catch=0, to free a watchpoint unit.

  11. You can now debug your ROM code (for example, set breakpoints, single-step, view backtrace).

  12. To break on each interrupt, put a breakpoint on line 112 of C_main.c:


    if (IntCT1)

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential