Table of Contents Previous topic Next topic
Downloading and Running a Program->The Configuration Script
If the debugger is to reset the target board and download your program, the script file <project name>.BDM must be present in the project directory. This must define MBAR and any chip selects, DRAM or RAMBAR necessary to configure the memory into which your program will be placed.
This is the contents of a typical script file:
; This configuration script was created on 16 May 2000 18:01:38
; using information gathered from the target hardware.
; No DRAM is fitted, so position external SRAM
; at address zero instead of 0X30000000
After it has performed a reset, the debugger works its way sequentially through the script setting MBAR to 0X10000001, DCRR to zero, DCTR to zero, CSAR0 to 0XFFE00000, etc. When all of the items in the script have been processed, the debugger will download your program.
Multiple scripts can be included in the same script file the debugger uses the one that matches the variant information included in the program file.