;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : LPC2468 microcontroller with external 12MHz oscillator ; ; Revision : 1.5 ; ; Date : March 20, 2008 ; ; 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 ; list of IR length of all ; TAP controller in JTAG chain JTAG_CLOCK = 10, 1000 ; JTAG Clock in [kHz] - 10kHz ; JTAG clock for init operations and ; 1.0MHz for normal work ; JTAG_TDO_DELAY = AUTO TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN ; or PUSHPULL WAKEUP_TIME = 200 ; time between releasing the reset and ; starting the jtag communication RESET_TIME = 20 ; length of RESET pulse in ms; 0 means ; no RESET CORE0 = ARM7TDMI ; TAP is ARM7TDMI 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_LPC2468 ; init section for LPC2468 board CORE0_FLASH0 = FLASH_LPC2468 ; FLASH section parameters CORE0_FLASH1 = SPI_FLASH ; FLASH section parameters CORE0_ENDIAN = LITTLE ; core is little endian CORE0_WORKSPACE_ADDR = 0x40000000 ; address of workspace for programmer CORE0_WORKSPACE_LEN = 0x2000 ; 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 = "myfile.bin", BIN, 0x40000000 ; default file [INIT_LPC2468] memory write 0xE01FC040 0x00000001 ; map FLASH vectors ; Enable main oscillator memory write 0xE01FC1A0 0x00000020 ; Set CCLK to 12Mhz using the external oscillator as the source memory write 0xE01FC080 0x00000000 ;PLLCON: memory write 0xE01FC084 0x00000000 ;PLLCFG: memory write 0xE01FC08C 0x000000AA ;PLLFEED: memory write 0xE01FC08C 0x00000055 ;PLLFEED: wait 20 memory write 0xE01FC104 0x00000000 ;CCLKCFG = Divide by 1 memory write 0xE01FC10C 0x00000001 ;CLKSRCSEL = Used main oscillator wait 20 ; set SPI pins memory write 0xE002C000 0xC0000000 ; Enable SCK memory write 0xE002C004 0x0000003C ; Enable MISO and MOSI memory write 0xE0028004 0x00090000 ; Drive CS(SSEL) to inactive state memory write 0xE0028008 0x00090000 ; Set CS(SSEL) as output [FLASH_LPC2468] CHIP = LPC2000 ; flash chip SET_VECTORS_CHECKSUM = YES ; auto set checksum at address 0x14 CPU_CLOCK = 12000 ; CPU clock is 12 MHz FILE = "test32k.bin", BIN, 0 ; file to program AUTO_ERASE = NO ; erase before program [SPI_FLASH] CHIP = SPI25_FLASH ; the SPI FLASH chip will be autodetected CPU = LPC2XXX ; an LPC CPU SPI_DIV = 16 ; Value to be set to the SPI_BAUD register CS_ASSERT = 0xE002800C, 0x00010000 CS_RELEASE = 0xE0028004, 0x00010000 FILE = "test.bin", BIN, 0 [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