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=0X10000001DCRR=0X0DCTR=0X0CSAR0=0XFFE00000CSMR0=0XF0000CSCR0=0X1DA3CSAR1=0X0CSMR1=0X0CSCR1=0X123; No DRAM is fitted, so position external SRAM ; at address zero instead of 0X30000000; CSAR2=0X30000000CSAR2=0X00000000CSMR2=0XF0000CSCR2=0X1903CSAR3=0X40000000CSMR3=0XF0000CSCR3=0X83DMCR=0X0RAMBAR=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.