Download bdiGDB User Manual
Transcript
bdiGDB for CPU32/32+ User Manual 21 3.2 Configuration File The configuration file is automatically read by the BDI2000 after every power on. The syntax of this file is as follows: ; comment [part name] identifier parameter1 identifier parameter1 ..... [part name] identifier parameter1 identifier parameter1 ..... etc. parameter2 ..... parameterN parameter2 ..... parameterN ; comment parameter2 ..... parameterN parameter2 ..... parameterN Numeric parameters can be entered as decimal (e.g. 700) or as hexadecimal (0x80000). 3.2.1 Part [INIT] The part [INIT] defines a list of commands which should be executed every time the target comes out of reset. The commands are used to get the target ready for loading the program file. The SIM registers (chip select, clock, ...) are usually initialized with this command list. WR register value Write value to the selected register. register D0...D7, A0...A7, PC, SR, USP, SSP, SFC, DFC, VBR value the value to write into the register Example: WR SFC 5 ;set supervisor data space WB address value Write a byte (8bit) to the selected memory place. address the memory address value the value to write to the target memory Example: WB 0xFFFFFA21 0x04 ; SYPCR: watchdog disable ... WW address value Write a word (16bit) to the selected memory place. address the memory address value the value to write to the target memory Example: WW 0xFFFFFA04 0x7F00 ;SYNCR: w=0, x=1 -> 16.7 MHz WL address value Write a long (32bit) to the selected memory place. address the memory address value the value to write to the target memory Example: WL 0xFFFFFA48 0x00077870 ; CSBOOT 1MB, 1wait, ... DELAY value Delay for the selected time. A delay may be necessary to let the clock PLL lock again after a new clock rate is selected. value the delay time in milliseconds (1...30000) Example: DELAY 500 ; delay for 0.5 seconds At the beginning of every command list, the DFC and the SFC should be set to supervisor data space. This because all memory accesses via BDM uses the memory space selected in DFC and SFC. © Copyright 1997-2010 by ABATRON AG Switzerland V 1.05