;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : LPC2917 microcontroller ; Board : Custom board with external 10MHz oscillator ; ; Revision : 1.1 ; ; Date : April 08, 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 is ARM [PLATFORM_ARM] JTAG_CHAIN = 4, 4 ; list of IR length of all ; TAP controller in JTAG chain JTAG_CLOCK = 1000, 10000 ; JTAG Clock in [kHz] - 10kHz ; JTAG clock for init operations and ; 1.0MHz 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 CORE0 = ARM968E, 0 ; TAP is ARM968E CPU CORE0_STARTUP_MODE = RESET ; startup mode after reset: ; if RESET than no code is executed after reset ; if STOP,XX then the target executes code for XX period in ms. ; if RUN then the target executes code until stopped by the telnet "halt" command CORE0_BREAK_PATTERN = 0xDFFFDFFF ; software breakpoint pattern CORE0_BREAKMODE = soft ; breakpoint mode: ; soft - use software breakpoints ; hard - use hardware breakpoints CORE0_INIT = INIT_LPC2917 ; init section for LPC2917 board CORE0_FLASH0 = FLASH_LPC2917 ; FLASH section parameters CORE0_ENDIAN = LITTLE ; core is little endian CORE0_WORKSPACE = 0x80000000, 0xC000 ; 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 = "myfile.bin", BIN, 0x40000000 ; default file [INIT_LPC2917] ; Crystal-oscillator control register mem write 0xFFFF8020 0x00000001 ; XTAL-Osc = enabled, Bypass = OFF, HF = OFF ;set sys_clk = 10Mhz ;CLK_SEL = XTAL, IDIV = 1 mem write 0xFFFF8070 0x01000000 ;PLL control register ;Disable PLL ;P23EN = OFF, PD = ON mem write 0xFFFF8028 0x00000001 ;PLL control register ;Enable PLL ;Fclkin = 10MHz, Fclkout = 160Mhz, Fcco = 320Mhz ;CLK_SEL = Crystal Osc., MSEL = 15 (M=16), AUTOBLOK = OFF, PSEL = 0 (P=2), ;DIRECT = OFF, P23EN = ON (120�,240�), BYPASS = OFF, PD = OFF mem write 0xFFFF8028 0x010F0004 wait 20 ; set sys_clk = 80Mhz mem write 0xFFFF8070 0x02000004 ; CLK_SEL = PLL, IDIV = 2 ;------------------------------------------------------------------------------ ; Static Memory Controller ; make external RAM on CS1 (0x44000000 - 47FFFFFF) ready for use ;------------------------------------------------------------------------------ ;Activate external memory (2MB) on CS1 ;IDCY = 0, WST1 = 5, WST2 = 5, WSTOEN = 0, WSTWEN = 0 ;RBLE = 1, CSPOL = LOW, WP = OFF, BM = OFF, MW = 32-Bit mem write 0x6000001C 0x00000000 mem write 0x60000020 0x00000005 mem write 0x60000024 0x00000005 mem write 0x60000028 0x00000000 mem write 0x6000002C 0x00000000 mem write 0x60000030 0x00000081 ;Port 0 configuration mem write 0xE0001000 0x00000017 ; P0.00 EXTBUS D24, Pull-Down mem write 0xE0001004 0x00000017 ; P0.01 EXTBUS D25, Pull-Down mem write 0xE0001008 0x00000017 ; P0.02 EXTBUS D26, Pull-Down mem write 0xE000100C 0x00000017 ; P0.03 EXTBUS D27, Pull-Down mem write 0xE0001010 0x00000017 ; P0.04 EXTBUS D28, Pull-Down mem write 0xE0001014 0x00000017 ; P0.05 EXTBUS D29, Pull-Down mem write 0xE0001018 0x00000017 ; P0.06 EXTBUS D30, Pull-Down mem write 0xE000101C 0x00000017 ; P0.07 EXTBUS D31, Pull-Down mem write 0xE0001020 0x00000007 ; P0.08 EXTBUS A20 mem write 0xE0001024 0x00000007 ; P0.09 EXTBUS A21 mem write 0xE0001028 0x00000007 ; P0.10 EXTBUS A08 mem write 0xE000102C 0x00000007 ; P0.11 EXTBUS A09 mem write 0xE0001030 0x00000007 ; P0.12 EXTBUS A10 mem write 0xE0001034 0x00000007 ; P0.13 EXTBUS A11 mem write 0xE0001038 0x00000007 ; P0.14 EXTBUS A12 mem write 0xE000103C 0x00000007 ; P0.15 EXTBUS A13 mem write 0xE0001040 0x00000007 ; P0.16 EXTBUS A22 mem write 0xE0001044 0x00000007 ; P0.17 EXTBUS A23 mem write 0xE0001048 0x00000007 ; P0.18 EXTBUS A14 mem write 0xE000104C 0x00000007 ; P0.19 EXTBUS A15 mem write 0xE0001050 0x00000007 ; P0.20 EXTBUS A16 mem write 0xE0001054 0x00000007 ; P0.21 EXTBUS A17 mem write 0xE0001058 0x00000007 ; P0.22 EXTBUS A18 mem write 0xE000105C 0x00000007 ; P0.23 EXTBUS A19 ;Port 1 configuration mem write 0xE0001104 0x00000007 ; P1.01 EXTBUS A01 mem write 0xE0001108 0x00000007 ; P1.02 EXTBUS A02 mem write 0xE000110C 0x00000007 ; P1.03 EXTBUS A03 mem write 0xE0001110 0x00000007 ; P1.04 EXTBUS A04 mem write 0xE0001114 0x00000007 ; P1.05 EXTBUS A05 mem write 0xE0001118 0x00000007 ; P1.06 EXTBUS A06 mem write 0xE000111C 0x00000007 ; P1.07 EXTBUS A07 mem write 0xE0001124 0x00000007 ; P1.09 EXTBUS CS1 mem write 0xE0001130 0x00000007 ; P1.12 EXTBUS OE mem write 0xE0001134 0x00000007 ; P1.13 EXTBUS WE mem write 0xE0001138 0x00000017 ; P1.14 EXTBUS D00, Pull-Down mem write 0xE000113C 0x00000017 ; P1.15 EXTBUS D01, Pull-Down mem write 0xE0001140 0x00000017 ; P1.16 EXTBUS D02, Pull-Down mem write 0xE0001144 0x00000017 ; P1.17 EXTBUS D03, Pull-Down mem write 0xE0001148 0x00000017 ; P1.18 EXTBUS D04, Pull-Down mem write 0xE000114C 0x00000017 ; P1.19 EXTBUS D05, Pull-Down mem write 0xE0001150 0x00000017 ; P1.20 EXTBUS D06, Pull-Down mem write 0xE0001154 0x00000017 ; P1.21 EXTBUS D07, Pull-Down ;Port 2 configuration mem write 0xE0001200 0x00000017 ; P2.00 EXTBUS D08, Pull-Down mem write 0xE0001204 0x00000017 ; P2.01 EXTBUS D09, Pull-Down mem write 0xE0001208 0x00000017 ; P2.02 EXTBUS D10, Pull-Down mem write 0xE000120C 0x00000017 ; P2.03 EXTBUS D11, Pull-Down mem write 0xE0001210 0x00000017 ; P2.04 EXTBUS D12, Pull-Down mem write 0xE0001214 0x00000017 ; P2.05 EXTBUS D13, Pull-Down mem write 0xE0001218 0x00000017 ; P2.06 EXTBUS D14, Pull-Down mem write 0xE000121C 0x00000017 ; P2.07 EXTBUS D15, Pull-Down mem write 0xE0001238 0x00000007 ; P2.14 EXTBUS BLS0 mem write 0xE000123C 0x00000007 ; P2.15 EXTBUS BLS1 mem write 0xE0001240 0x00000007 ; P2.16 EXTBUS BLS2 mem write 0xE0001244 0x00000007 ; P2.17 EXTBUS BLS3 mem write 0xE0001248 0x00000017 ; P2.18 EXTBUS D16, Pull-Down mem write 0xE000124C 0x00000017 ; P2.19 EXTBUS D17, Pull-Down mem write 0xE0001250 0x00000017 ; P2.20 EXTBUS D18, Pull-Down mem write 0xE0001254 0x00000017 ; P2.21 EXTBUS D19, Pull-Down mem write 0xE0001258 0x00000017 ; P2.22 EXTBUS D20, Pull-Down mem write 0xE000125C 0x00000017 ; P2.23 EXTBUS D21, Pull-Down mem write 0xE0001260 0x00000017 ; P2.24 EXTBUS D22, Pull-Down mem write 0xE0001264 0x00000017 ; P2.25 EXTBUS D23, Pull-Down [FLASH_LPC2917] CHIP = LPC2917 ; flash chip ACCESS_METHOD = AGENT CPU_CLOCK = 160000 ; CPU clock is 160 MHz FILE = test256k.bin, 0x20000000 ; file to program AUTO_ERASE = NO ; erase before program [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 ; enable CLI over RS232 ;TCP_PORT = 2023 ; enable serial over TCP/IP [TELNET] PROMPT = "LPC> " ; 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 1 = erase 2 = prog 3 = dump_ram 4 = dump_flash [erase] ; erase flash flash erase [prog] ; program flash flash prog [dump_ram] ; dump part of RAM memory dump 0x80000000 0x1000 tftp://192.168.1.1/ram.bin [dump_flash] ; dump part of FLASH memory dump 0x20000000 0x1000 tftp://192.168.1.1/flash.bin