;-------------------------------------------------------------------------- ; ; ; PEEDI target configuration file for TI TMS470 microcontroller ; ; Ronetix ; ; Supported devices : TMS470 ; ; Revision : 1.6 ; ; Date : April 11, 2011 ; ; 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, 10000 ; JTAG Clock in [kHz] - 10kHz ; JTAG clock for init operations and ; 10MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN ; or PUSHPULL RESET_TIME = 20 TIME_AFTER_RESET = 500 CORE0 = ARM7TDMI ; TAP is ARM7TDMI CPU CORE0_STARTUP_MODE = RESET ; Let the core enable the JTAG port CORE0_BREAK_PATTERN = 0xDFFFDFFF ; software breakpoint pattern CORE0_BREAKMODE = soft ; breakpoint mode: ; soft - use software breakpoints ; hard - use hardware breakpoints CORE0_INIT =INIT_TMS470B1M ; init section for TMS470B1M board ;CORE0_INIT =INIT_TMS470A ; init section for TMS470A board ;CORE0_INIT = INIT_TMS470AVF688 CORE0_FLASH = FLASH_TMS470 ; FLASH section parameters CORE0_ENDIAN = BIG ; TMS470 works in BIG endian CORE0_WORKSPACE_ADDR=0x00400000 ; start address of workspace for flash ; programmer CORE0_WORKSPACE_LEN =0x4000 ; length of workspace in bytes CORE0_FILE = "myfile.bin", BIN, 0x00400000 ; default file CORE0_PATH = "tftp://192.168.3.1" ; default path [INIT_TMS470A] ; disable illegal address reset memory write 0xFFFFFFE0 0x00004007 ; SYSECR ; set memory select 0 block size to 512kB memory write 0xFFFFFE00 0x00000000 ; MFBAHR0 memory write 0xFFFFFE04 0x000000A0 ; MFBALR0 ; activate RAM at 0x00400000 32k that is connected to memory select 2 memory write 0xFFFFFE10 0x00000040 ; MFBAHR2 memory write 0xFFFFFE14 0x00000050 ; MFBALR2 ; activate HET RAM at 0x00800000 1k that is connected to memory select 4 memory write 0xFFFFFE20 0x00000080 ; MFBAHR4 memory write 0xFFFFFE24 0x00000020 ; MFBALR4 ; activate new mapping by writing 1 to MFBALR0.8 memory write 0xFFFFFE04 0x000001A0 ; MFBALR0 memory write 0xFFFFFFDC 0x0000000B ; GCR SYSCLK *4 and /4 = SYSCLK /1 [INIT_TMS470AVF688] ; Ram Config at 0x01000000 len = 0x3000 ; disable illegal address reset memory write 0xFFFFFFE0 0x00004007 ; SYSECR mem write 0xfffffe00 0 mem write 0xfffffe04 0x90 mem write 0xfffffe08 4 mem write 0xfffffe0C 0x80 mem write 0xfffffe10 0x100 mem write 0xfffffe14 0x40 mem write 0xfffffe18 0x100 mem write 0xfffffe1C 0x2030 mem write 0xFFFFFE20 0 mem write 0xFFFFFE24 0 mem write 0xFFFFFE28 0 mem write 0xFFFFFE2C 0 mem write 0xFFFFFE30 0 mem write 0xFFFFFE34 0 mem write 0xFFFFFE38 0 mem write 0xFFFFFE3C 0 mem write 0xFFFFFE40 0 mem write 0xFFFFFE44 0 mem write 0xFFFFFE48 0 mem write 0xFFFFFE4C 0 mem write 0xFFFFFE50 0 mem write 0xFFFFFE54 0 mem write 0xFFFFFE58 0 mem write 0xFFFFFE5C 0 ; Enable memory map mem write 0xFFFFFE00 0 mem write 0xFFFFFE04 0x190 ; PLL Config memory write 0xFFFFFFDC 0x00000008 ; Engr ID mem write 0xffe88000 0x00000000 ; Aux Engr ID mem write 0xffe88000 0x0100 mem write 0xffe88004 0x0100 [INIT_TMS470B1M] ; disable illegal address reset memory write 0xFFFFFFE0 0x00004007 ; SYSECR ; set memory select 0 block size to 1MB memory write 0xFFFFFE00 0x00000000 ; MFBAHR0 memory write 0xFFFFFE04 0x000000B0 ; MFBALR0 ; activate RAM at 0x00400000 32k that is connected to memory select 2 memory write 0xFFFFFE10 0x00000040 ; MFBAHR2 memory write 0xFFFFFE14 0x00000070 ; MFBALR2 ; activate RAM at 0x00000000 0k that is connected to memory select 3 memory write 0xFFFFFE18 0x00000000 memory write 0xFFFFFE1C 0x00000000 ; HET RAM static memory control register, use 7 wait states and 32-bit access memory write 0xfffffd04 0x72 ; activate HET RAM at 0x00800000 2k that is connected to memory select 4 memory write 0xFFFFFE20 0x00000080 ; MFBAHR4 memory write 0xFFFFFE24 0x00000020 ; MFBALR4 ; activate new mapping by writing 1 to MFBALR0.8 memory write 0xFFFFFE04 0x000001B0 ; MFBALR0 mem write 0xFFFFF724 0x80000000 ; dump the MSM keys mem read 0x0000FFE0 4 ; unlock the device using the correct MSM keys mem write 0xFFFFF700 0xFFFFFFFF mem write 0xFFFFF704 0xFFFFFFFF mem write 0xFFFFF708 0xFFFFFFFF mem write 0xFFFFF70C 0xFFFFFFFF mem write 0xFFFFFFDC 0x00000003 ; GCR SYSCLK *4 and /4 = SYSCLK /1 [FLASH_TMS470] CHIP = TMS470 ; internal flash BASE_ADDR = 0 ACCESS_METHOD = AGENT ;PROTECTION_KEY0 = 0xFC070000 ;PROTECTION_KEY1 = 0xFD070000 ;PROTECTION_KEY2 = 0xFE070000 ;PROTECTION_KEY3 = 0xFF070000 PROTECTION_KEY0 = 0xFFFFFFFF PROTECTION_KEY1 = 0xFFFFFFFF PROTECTION_KEY2 = 0xFFFFFFFF PROTECTION_KEY3 = 0xFFFFFFFF ALLOW_ZERO_KEYS = NO FILE = "test32k.bin", BIN, 0 ; 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 = "tms470> " ; 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 verify