;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix GmbH ; ; Supported devices : All Kinetis Devices ; ; Revision : 1.2 ; ; Date : May 30, 2014 ; ; 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 = Cortex-M ; platform is ARM PLATFORM = Cortex-M_SWD ; platform is ARM [PLATFORM_Cortex-M] JTAG_CHAIN = 4 ; list of TAP controllers in the JTAG chain JTAG_CLOCK = 100, 12500 ; JTAG Clock in [kHz] TRST_TYPE = OPENDRAIN ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 100 ; length of RESET pulse in ms; 0 means no RESET TIME_AFTER_RESET = 50 CORE0 = Cortex-M ; TAP is CortexM3 CPU CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = HARD, 0, 0x80000 ; breakpoint mode CORE0_WORKSPACE = 0x20000000, 0x3000 ; 12KB ;CORE0_INIT = INIT_KINETIS ; init section CORE0_FLASH = FLASH_KINETIS ; FLASH section parameters CORE0_PATH = "tftp://192.168.3.60" ; default path [PLATFORM_Cortex-M_SWD] SWD_CLOCK = 10000 ; SWD Clock in [kHz] TRST_TYPE = OPENDRAIN ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; length of RESET pulse in ms; 0 means no RESET RESET_TYPE = RST_NOGATE ; RST is asserted during the connect phase TIME_AFTER_RESET = 50 CORE0 = Cortex-M ; TAP is CortexM3 CPU CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_LOCKOUT_RECOVERY = KINETIS CORE0_BREAKMODE = HARD, 0, 0x80000 ; breakpoint mode CORE0_WORKSPACE = 0x20000000-256, 1024*2 ;CORE0_WORKSPACE = 0x20000000-256, 1024 ; KEA8 with 1K RAM ;CORE0_INIT = INIT_K-SERIES CORE0_FLASH0 = FLASH_KINETIS ; FLASH section parameters CORE0_PATH = "tftp://192.168.3.60" ; default path CORE0_SWO = DWT, 10000 ;CORE0_SWO = 0, 2001 ;CORE0_SWO = 1, 10002 ;CORE0_SWO = 2, 10003 ;CORE0_PROFILING = 0, 0x80000, 0x100000 ; K series [INIT_K-SERIES] ; K series - disable Watchdog set r0 0x40052000 set r1 0xC520 set r2 0xD928 set r3 0x0000 mem wr16 0x20000000 0x81C1 ; strh r1, [r0, #14] mem wr16 0x20000002 0x81C2 ; strh r2, [r0, #14] mem wr16 0x20000004 0x8003 ; strh r3, [r0] mem wr16 0x20000006 0xBE00 ; halt go 0x20000000 wait 1000 stop ; disable FLASH cache mem and 0x4001F004 0xFFFFFFE0 mem and 0x4001F008 0xFFFFFFE0 ; vectors in RAM mem wr 0xE000ED08 0x1FFFC000 ; init SWO m w 0xE0042004 0x20 ; en. async trace m w 0xE0040010 1 ; SWO prescaler m w 0xE00400F0 1 ; en. Manchester encoding m w 0xE0040304 0 ; bypass formatter m w 0xE0000FB0 0xC5ACCE55 ; unlock access to ITM registers m w 0xE0000E80 0x10009 ; trace ID = 1, ITM and DTW enabled m w 0xE0000E40 0xF ; en. all tracing ports m w 0xE0000E00 0xFFFFFFFF ; en. all stimulus ports ;m w 0xE0001000 0x100F ; ENABLE PC sampling and CYCCNT at slowest rate m w 0xE0001000 0 ; DISABLE PC sampling ;set pc 0 ; set PC and SP to avoid gdb complaining ;set sp 0x20004FFC ; when FLASH is empty [FLASH_KINETIS] CHIP = KINETIS ; automatically detect the flash chip AUTO_ERASE = NO ; erase before program FILE = "test32k.bin" 0x10000 ; file to program ;ACCESS_METHOD = DIRECT ; by default AGENT mode is used [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "kinetis> " ; 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 [blank] flash blank 0 0x400 flash blank 0x410 0x40000-0x410