;-------------------------------------------------------------------------- ; ; ; PEEDI target configuration file for STR7 microcontroller ; ; Ronetix ; ; Supported devices : STR7 ; ; Revision : 1.5 ; ; Date : April 24, 2012 ; ; 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, 20000 ; JTAG Clock in [kHz] - 10kHz ; JTAG clock for init operations and ; 1MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN ; or PUSHPULL ; starting the jtag communication RESET_TIME = 20 ; length of RESET pulse in ms; ; 0 means no RESET TIME_AFTER_RESET = 200 ; time between releasing the reset and 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_STR7 ; init section for a STR7 board CORE0_FLASH0 = FLASH_STR7 ; internal Flash CORE0_FLASH1 = FLASH_M28W160 ; external Flash CORE0_FLASH2 = FLASH_SPI ; external SPI Flash CORE0_ENDIAN = LITTLE ; core is little endian CORE0_WORKSPACE_ADDR = 0x20000000 ; address of workspace for programmer CORE0_WORKSPACE_LEN = 0x4000 CORE0_FILE = "myfile.bin", BIN, 0x20000000 ; default file CORE0_PATH = "tftp://192.168.3.1" ; default path for memory commands [INIT_STR7] ; set the clock (f_mclk = 48MHz) ;memory write16 0xA0000040 0x0000 ; PRCCU.MDIVR: mclk = rclk ;memory write16 0xA0000044 0x0101 ; PRCCU.PDIVR: pclk{1,2} = rclk/2 ;memory write32 0xA0000018 0x00000050 ; PRCCU.PLL1CR: fin>3MHz, fclk3=fclk2*12 ;WAIT 100 ; wait 100ms ;memory write32 0xA0000008 0x00000009 ; PRCCU.CFR: rclk = f_pll ; enable external RAM at address 0x62000000 mem write16 0x6C000004 0x800D ; CS1 in 16-bit mem write16 0xe0005008 0x3 ; enable CS1 (P2.1) ; set BSPI0 pins - MISO0, MOSI0, SCLK0:AF_PP PIO4:OUT_PP mem and16 0xE0003004 0xFFEF mem or16 0xE0003008 0x0017 mem or16 0xE000300C 0x0008 ; enable BSPI0 mem or16 0xA0000050 4 [FLASH_STR7] CHIP = STR7_256KB ; flash chip DATA_BANK = YES ; device has data flash bank on chip BASE_ADDR = 0x40000000 ACCESS_METHOD = AUTO SECURE_FLASH = NO FILE = "test256.bin" BIN, 0x40000000 ; file to program AUTO_ERASE = NO ; erase before program AUTO_LOCK = NO [FLASH_M29W160] CHIP = M29W160B/D/EB BASE_ADDR = 0x60000000 ACCESS_METHOD = AGENT ; program method auto CHECK_ID = YES ; check chip ID CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used AUTO_ERASE = NO ; erase before program AUTO_LOCK = NO ; lock after program FILE = "test256k.bin" BIN, 0x60000000 [FLASH_SPI] CHIP = SPI25_FLASH ; flash chip CPU = STR71X nSPI = 0 SPI_DIV = 6 CS_ASSERT = 0xE000300C, 0x00000008 CS_RELEASE = 0xE000300C, 0x00000018 FILE = "test256k.bin" BIN, 0 ; file to 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 = "str7> " ; 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 flash verif [dump_ram] ; dump part of RAM memory dump 0x40000000 0x1000 tftp://192.168.1.1/ram.bin [dump_flash] ; dump part of FLASH memory dump 0x00000000 0x1000 tftp://192.168.1.1/flash.bin