Crossware

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:

[VARIANT=5206E]
; This configuration script was created on 16 May 2000 18:01:38
; using information gathered from the target hardware.
MBAR=0X10000001
DCRR=0X0
DCTR=0X0
CSAR0=0XFFE00000
CSMR0=0XF0000
CSCR0=0X1DA3
CSAR1=0X0
CSMR1=0X0
CSCR1=0X123
; No DRAM is fitted, so position external SRAM
; at address zero instead of 0X30000000
; CSAR2=0X30000000
CSAR2=0X00000000
CSMR2=0XF0000
CSCR2=0X1903
CSAR3=0X40000000
CSMR3=0XF0000
CSCR3=0X83
DMCR=0X0
RAMBAR=0X20000021

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.