;------------------------------------------------------------------------------- ; ; mpc5200.cfg ; ----------- ; ; PEEDI target configuration file for MPC5200 evaluation board ; ; ; Ronetix ; ; Supported devices : MPC5200 ; ; Revision : 1.0 ; ; Date : May 19, 2009 ; ; 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 = MPC5200 ; platform is MPC5200 [PLATFORM_MPC5200] JTAG_CHAIN = 8 ; list of IR lenght of all TAP controller in JTAG chain JTAG_CLOCK = 16000 ; JTAG Clock in [kHz] - 10kHz jtag clock for init operations and 16MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; lenght of RESET pulse in ms; 0 means no RESET TIME_AFTER_RESET = 500 CORE0 = MPC5200 ; TAP is MPC5200 CPU CORE0_STARTUP_MODE = RESET CORE0_BREAKMODE = SOFT ; breakpoint mode: ; soft - software breakpoint ; hard - use hardware breakpoints instead of software CORE0_INIT = INIT_MPC5200 ; init section for EB55800 board CORE0_FLASH0 = FLASH_MPC5200 ; flash section parameters CORE0_ENDIAN = BIG ; core is little endian CORE0_BOOT_ADDR = 0x100 CORE0_WORKSPACE = 0xC0000000, 0x4000 ; start address of workspace for flash programmer CORE0_PATH = "tftp://192.168.3.60" CORE0_FILE = "myfile.bin", 0 [INIT_MPC5200] mem write 0x80000004 0x00000000 ; CS0 start = 0x00000000 mem write 0x80000008 0x000000FF ; CS0 stop = 0x00FFFFFF mem write 0x80000300 0x00083800 ; alt: 00083800 mem write 0x8000000C 0x0000C000 ; CS1 start = 0xC0000000 mem write 0x80000010 0x0000C400 ; CS1 stop = 0xC4000000 mem write 0x80000B00 0x80000000 ; Enable CS1 mem write 0x80000054 0x00010001 ; CSE: enable CS0, disable CSBOOT mem write 0x80000318 0x01000000 ; CS Master enable mem write 0x80000034 0xC0000019 ; SDRAM CS0, 64MB @ 0xC0000000 mem write 0x80000038 0x04000000 ; SDRAM CS1, disabled @ 0x04000000 mem write 0x80000108 0x33622930 ; SDRAM Config 1 mem write 0x8000010C 0x46670000 ; SDRAM Config 2 mem write 0x80000104 0xF14F0F00 ; SDRAM Control mem write 0x80000104 0xF14F0F02 ; SDRAM Control: precharge all mem write 0x80000104 0xF14F0F04 ; SDRAM Control: refresh mem write 0x80000104 0xF14F0F04 ; SDRAM Control: refresh mem write 0x80000100 0x008D0000 ; SDRAM_MODE: set mode register mem write 0x80000104 0xF14F0F02 ; SDRAM Control: precharge all mem write 0x80000104 0xF14F0F04 ; SDRAM Control: refresh mem write 0x80000104 0xF14F0F04 ; SDRAM Control: refresh mem write 0x80000100 0x40090000 ; SDRAM_MODE: set mode register: extended mode mem write 0x80000100 0x048D0000 ; SDRAM_MODE: set mode register: reset DLL mem write 0x80000104 0x714F0F00 ; SDRAM Control: Lock Mode Register mem write 0x80000190 0x00000004 ; SDelay Register [FLASH_MPC5200] CHIP = 28F128J3 ; flash chip ACCESS_METHOD = AGENT ; program method auto CHECK_ID = YES ; check chip ID CHIP_WIDTH = 8 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0 ; chip is mapped at 0 (low boot) FILE = "test32k.bin", bin, 0 AUTO_ERASE = YES ; erase before program AUTO_LOCK = NO ; lock after program [FLASH_CFI] CHIP = CFI_FLASH ACCESS_METHOD = AGENT ; program method auto CHECK_ID = YES ; check chip ID CHIP_WIDTH = 8 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0 ; chip is mapped at 0 (low boot) FILE = "test32k.bin", bin, 0 AUTO_ERASE = NO AUTO_LOCK = NO [FLASH_DIRECT] CHIP = CFI_FLASH ACCESS_METHOD = DIRECT CHECK_ID = YES ; check chip ID CHIP_WIDTH = 8 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0 ; chip is mapped at 0 (low boot) FILE = "test32k.bin", bin, 0 AUTO_ERASE = NO AUTO_LOCK = NO [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "mpc5200> " ; telnet prompt ;BACKSPACE = 127 ; comment out for autodetect [DISPLAY] BRIGHTNESS = 20 ; LED indicator brightness VOLUME = 25 ; zummer volume [ACTIONS] ; user defined scripts 1 = erase 2 = prog [erase] ; erase flash flash erase [prog] ; program flash flash program