;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Digi NS9215 ; ; Board : Custom board ; ; Revision : 1.0 ; ; Date : November 12, 2010 ; ; 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 = 100, 10000 ; JTAG Clock in [kHz] - 10kHz for init operations and ; 20MHz for normal work ; MAX JTAG clock 33MHz, 16-20MHz is recommended TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 0, 100 ; length of RESET pulse in ms; 0 means no RESET CORE0 = ARM9TDMI ; TAP is ARM920T 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_BREAKMODE = soft ; default breakpoint mode for the debugger: ; soft - use software breakpoints ; hard - use hardware breakpoints CORE0_BREAK_PATTERN = 0xDFFFDFFF; software breakpoint pattern CORE0_ENDIAN = BIG ; core is big endian CORE0_WORKSPACE = 0x50000000, 0x12000 ; use external FRAM CORE0_INIT = INIT_NS9200 ; init section CORE0_FLASH0 = FLASH_EEPROM ; FLASH section parameters CORE0_FLASH1 = FLASH_NAND ; FLASH section parameters [INIT_NS9200] ; Reset SPI mem and 0xA0900180 0xFFFFFFDF mem or 0xA0900180 0x00000020 ; Configure SPI pins, GPIO15/SPI_CS as output, set mem wr 0xA0902008 0x20181818 ; SDI mem wr 0xA090200C 0x1C202010 ; CS, SDO, CLK mem wr 0xA090206C 0x00008000 ; CS HIGH ; Configure SPI mem wr 0x90031000 0x00000005 ; Config Mode 0, MSB mem and 0x90031010 0xFFFEFFFF ; Divisor disable mem wr 0x90031010 0x00000258 ; Divisor 500 kb/s mem wr 0x90031010 0x00010258 ; Divisor enable mem wr 0x90031020 0x00000000 ; Enable Interrupts dissabled ; Configure NAND CS and timings mem wr 0xA0700200 0x00000080 mem wr 0xA0700208 0x00000001 mem wr 0xA070020C 0x00000005 mem wr 0xA0700204 0x00000000 mem wr 0xA0700214 0x00000004 mem wr 0xA0700218 0x00000004 ; Configure and set GPIO50/NAND_WP mem wr 0xA0902030 0x181C1818 mem or 0xA0902070 0x00040000 ; Clear Mirror bit mem and 0xA0700000 0xFFFFFFFD [FLASH_EEPROM] CPU = NS92XX CHIP = SPI_EEPROM ; the SPI EEPROM CHIP_SIZE = 0x2000 ; 8KB size CS_ASSERT = 0xA090206C, 0x00000000 CS_RELEASE = 0xA090206C, 0x00008000 FILE = tftp://192.168.3.1/T4e_SPI.bin, 0 [FLASH_NAND] CHIP = NAND_FLASH DATA_BASE = 0x40000000 ; data CMD_BASE = 0x40004000 ; commands (CLE) ADDR_BASE = 0x40002000 ; addreses (ALE) BURST_MODE = NO ERASE_BAD_BLOCKS = NO OOB_INFO = JFFS2_NO_EM FILE = tftp://192.168.3.1/T4e_u-boot.bin, 0x1000000 AUTO_ERASE = YES [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "ns9215> " ; 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 0x20000000 0x01000 tftp://192.168.1.1/ram.bin [dump_flash] ; dump part of FLASH memory dump 0x10000000 0x10000 tftp://192.168.1.1/flash.bin