;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Atmel AT91RM9200 ; Board : Atmel at91rm9200ek ; ; Revision : 1.0 ; ; Date : July 06, 2009 ; ; The file is delivered "AS IS" without warranty or condition of any ; kind, either express, implied or statutory. This includes without ; limitation any warranty or condition with respect to merchantability or ; fitness for any particular purpose, or against the infringements of ; intellectual property rights of others. ; ;-------------------------------------------------------------------------- ;-------------------------------------------------------------------------- ; The following section contains licenses that are required for PEEDI to ; operate. These licenses must be filled before using this file. ; The [LICENSE] section may contain license keys for one or more PEEDIs. ; ; Example: ; [LICENSE] ; KEY = UPDATE_24MAY2010, 1111-1111-1111-1 ; KEY = XXXXX, 2222-2222-2222-2 ; ; The [LICENSE] section may point to an external file which contains ; license keys for one or more PEEDIs. The external file must include ; the text [LICENSE] followed by all keys. ; ; Example: ; [LICENSE] ; FILE = tftp://192.168.3.1/license.txt ; or ; FILE=eep:license.txt ; or ; FILE = ftp://user:password@192.168.3.1/license.txt ; ; ; PEEDI is shipped with license keys stored in "eep:license.txt" and ; printed on a label on the bottom side of PEEDI. ; [LICENSE] FILE=eep:license.txt ;-------------------------------------------------------------------------- [DEBUGGER] PROTOCOL = gdb_remote ; gdb remote REMOTE_PORT = 2000 ; TCP/IP port [TARGET] PLATFORM = ARM [PLATFORM_ARM] JTAG_CHAIN = 4 ; list of IR lenght of all TAP controller in JTAG chain JTAG_CLOCK = 20, 20000 ; JTAG Clock in [kHz] - 10kHz jtag clock for init operations and 20MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; length of RESET pulse in ms; 0 means no RESET WAKEUP_TIME = 20 ; time between releasing the reset and starting the jtag communication CORE0 = ARM9TDMI ; TAP 0 is ARM9TDMI CORE0_BREAK_PATTERN = 0xDFFFDFFF ; software breakpoint pattern CORE0_BREAKMODE = soft ; breakpoint mode: ; soft - software breakpiont ; hard - use hardware breakpoints instead of software CORE0_INIT =INIT_EK ; init section for the AT91RM9200-EK board CORE0_STARTUP_MODE = RESET ; if RESET than no code is executed after reset ; if STOP then PEEDI lets the target execute code for 300 ms. ; if RUN then the target excutes code until stopped by the telnet "halt" command CORE0_FLASH = FLASH_AM29LV017D CORE0_ENDIAN = little CORE0_WORKSPACE_ADDR= 0x20010000 ; start address of workspace for flash programmer CORE0_WORKSPACE_LEN = 0x10000 ; length of workspace in bytes ; Default path to be used if only a file name (without the full path) is ; provided to a PEEDI command or for the FILE parameter in the Flash sections ; Examples: ; In a console: ; "flash prog tftp://192.168.3.1/image.elf" ; is equal to ; "flash prog image.elf" ; ; In a Flash Profile: ; FILE="tftp://192.168.3.1/image.bin", BIN, 0 ; is equal to ; FILE="image.bin", BIN, 0 ; CORE0_PATH = "tftp://192.168.3.1" ;CORE0_PATH = "card://" CORE0_FILE = "test.bin", BIN, 0x20000000 ;------------------------------------------------------------------- ; CORE_VECTOR_CATCH_MASK ; ---------------------- ; If one of the bits is set HIGH and the corresponding exception occurs, the ; processor enters debug state as if a breakpoint has been set on an instruction fetch ; from the relevant exception vector. ; ; bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 ;---------------------------------------------------------- ;| fiq | irq | res |d_abort| p_abort| swi | undef | reset | ;---------------------------------------------------------- CORE0_VECTOR_CATCH_MASK = 0x00 [INIT_EK] set cpsr 0xD3 mem write 0xFFFFFC20 0x0000FF01 ; CKGR_MOR (Main osc. register) ; Init Flash mem write 0xFFFFFF10 0x00000000 ; MC_PUIA[0] mem write 0xFFFFFF50 0x00000000 ; MC_PUP mem write 0xFFFFFF54 0x00000000 ; MC_PUER: Memory controller protection unit disable mem write 0xFFFFFF64 0x00000000 ; EBI_CFGR mem write 0xFFFFFF70 0x00003284 ; SMC2_CSR[0]: 16bit, 2 TDF, 4 WS ; ; Init Clocks mem write 0xFFFFFC28 0x20263E04 ; PLLAR: 179,712000 MHz for PCK wait 100 mem write 0xFFFFFC2C 0x10483E0E ; PLLBR: 48,054857 MHz (divider by 2 for USB) wait 100 ;mem write 0xFFFFFC30 0x00000100 ; PMC_MCKR ;wait 100 mem write 0xFFFFFC30 0x00000202 ; MCKR : PCK/3 = MCK Master Clock = 59,904000MHz from PLLA wait 100 ; ; Init SDRAM mem write 0xFFFFF870 0xFFFF0000 ; PIOC_ASR: Configure PIOC as peripheral (D16/D31) mem write 0xFFFFF874 0x00000000 ; PIOC_BSR: mem write 0xFFFFF804 0xFFFF0000 ; PIOC_PDR: mem write 0xFFFFFF60 0x00000002 ; EBI_CSA : CS1=SDRAM mem write 0xFFFFFF64 0x00000000 ; EBI_CFGR: mem write 0xFFFFFF98 0x2188c155 ; SDRC_CR : mem write 0xFFFFFF90 0x00000002 ; SDRC_MR : Precharge All mem write 0x20000000 0x00000000 ; access SDRAM mem write 0xFFFFFF90 0x00000004 ; SDRC_MR : Refresh mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0x20000000 0x00000000 ; access SDRAM mem write 0xFFFFFF90 0x00000003 ; SDRC_MR : Load Mode Register mem write 0x20000080 0x00000000 ; access SDRAM mem write 0xFFFFFF94 0x000002E0 ; SDRC_TR : Write refresh rate mem write 0x20000000 0x00000000 ; access SDRAM mem write 0xFFFFFF90 0x00000000 ; SDRC_MR : Normal Mode mem write 0x20000000 0x00000000 ; access SDRAM mem write 0xFFFFFF00 1 ; REMAP set pc 0x20000000 ;set control 0x107c ; enable cache [SERIAL] BAUD=115200 STOP_BITS=1 PARITY=NONE TCP_PORT = 0 ; enable CLI over RS232 ;TCP_PORT = 2023 ; enable serial over TCP/IP [TELNET] PROMPT = "at91> " ; telnet prompt ;BACKSPACE=127 ; comment out for autodetect [DISPLAY] BRIGHTNESS = 20 ; LED indicator brightness VOLUME = 25 ; beeper volume [ACTIONS] ; user defined scripts ;AUTORUN = 2 ; executed on every target connect