;-------------------------------------------------------------------------- ; ; ; PEEDI target configuration file ; ; Ronetix GmbH ; ; Supported devices : STM32F103, multicore ; ; Revision : 1.3 ; ; Date : Dec 10, 2013 ; ; 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 = CortexM3 ; platform is CortexM3 [PLATFORM_CortexM3] JTAG_CHAIN = AUTO x 5,4 ; automatically detect up to 4 CPUs in the JTAG chain JTAG_CLOCK = 100, 5000 ; JTAG 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 CORE0 = Cortex-M,1; TAP is CortexM3 CPU CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = HARD ; breakpoint mode CORE0_INIT = INIT_STM32 ; init section for STM32 CORE0_FLASH = FLASH_STM32 ; FLASH section parameters CORE0_WORKSPACE = 0x20000000, 0x4000 ; workspace for agent programming CORE0_PATH = "tftp://192.168.3.1" CORE1 = Cortex-M,3; TAP is CortexM3 CPU CORE1_STARTUP_MODE = RESET ; stop the core immediately after reset CORE1_ENDIAN = LITTLE ; core is little endian CORE1_BREAKMODE = HARD ; breakpoint mode CORE1_INIT = INIT_STM32 ; init section for STM32 CORE1_FLASH = FLASH_STM32 ; FLASH section parameters CORE1_WORKSPACE = 0x20000000, 0x4000 ; workspace for agent programming CORE1_PATH = "tftp://192.168.3.1" CORE2 = Cortex-M,5; TAP is CortexM3 CPU CORE2_STARTUP_MODE = RESET ; stop the core immediately after reset CORE2_ENDIAN = LITTLE ; core is little endian CORE2_BREAKMODE = HARD ; breakpoint mode CORE2_INIT = INIT_STM32 ; init section for STM32 CORE2_FLASH = FLASH_STM32 ; FLASH section parameters CORE2_WORKSPACE = 0x20000000, 0x4000 ; workspace for agent programming CORE2_PATH = "tftp://192.168.3.1" CORE3 = Cortex-M,7; TAP is CortexM3 CPU CORE3_STARTUP_MODE = RESET ; stop the core immediately after reset CORE3_ENDIAN = LITTLE ; core is little endian CORE3_BREAKMODE = HARD ; breakpoint mode CORE3_INIT = INIT_STM32 ; init section for STM32 CORE3_FLASH = FLASH_STM32 ; FLASH section parameters CORE3_WORKSPACE = 0x20000000, 0x4000 ; workspace for agent programming CORE3_PATH = "tftp://192.168.3.1" [INIT_STM32] mem or 0x40021000 0x00010000 ; switch On HSE wait 10 ; wait to stabilize mem wr 0x40021004 0x001D0000 ; config PLL div:1 mul:9 = 72MHz mem or 0x40021000 0x01000000 ; switch On PLL wait 10 ; wait to stabilize mem wr 0x40022000 0x00000012 ; 1ws for FLASH mem wr 0x40021004 0x001D0002 ; select PLL set pc 0 ; set PC and SP to avoid gdb complaining set sp 0x20004FFC ; when FLASH is empty [FLASH_STM32] CHIP = STM32 ; STM32_128KB_1KB BASE_ADDR = 0x8000000 ; flash is mapped at 0x8000000 ACCESS_METHOD = AGENT ; use agent programming AUTO_ERASE = NO ; erase before program FILE = "test128k.bin" 0x8000000 ; file to program [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "stm32> " ; 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 RAM memory dump 0x20000000 0x5000 tftp://192.168.0.1/ram.bin [dump_flash] ; dump FLASH memory dump 0x00000000 0x20000 tftp://192.168.0.1/flash.bin