;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : FreeScale MCF5475 ; Board : Axman M5475EVB evaluation board ; ; Revision : 1.1 ; ; Date : April 12, 2010 ; ; 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 = COLDFIRE ; platform is ColdFire [PLATFORM_COLDFIRE] BDM_CLOCK = adaptive_8 ; BDM Clock is CLKOUT/8 RESET_TIME = 100 ; lenght of RESET pulse in ms; 0 means no RESET CORE = MCF547x ; CPU is Coldfire veriosn 4 CORE_STARTUP_MODE = reset CORE_BREAKMODE = soft ; soft - software breakpiont ; hard - use hardware breakpoints instead of software CORE_INIT = INIT_COLDFIRE ; init section CORE_FLASH0 = FLASH_28F160C3B ; flash section parameters CORE_FLASH1 = FLASH_28F256K3C ; flash section parameters CORE_WORKSPACE_ADDR = 0x200 ; start address of workspace for flash programmer CORE_WORKSPACE_LEN = 0x10000 ; length of workspace in bytes ; Default path to be used if only a file name (without the full path) is ; provided to a PEEDI command or for the FILE parameter in the Flash sections ; Examples: ; In a console: ; "flash prog tftp://192.168.3.1/image.elf" ; is equal to ; "flash prog image.elf" ; ; In a Flash Profile: ; FILE="tftp://192.168.3.1/image.bin", BIN, 0 ; is equal to ; FILE="image.bin", BIN, 0 ; CORE0_PATH = "tftp://192.168.3.1" ;CORE0_PATH = "card://" CORE_FILE = "myfile.bin", BIN, 0 ; default file [INIT_COLDFIRE] ; Turn on MBAR set MBAR 0x10000000 ; Turn on RAMBAR0 at address 20000000 set RAMBAR0 0x20000021 ; Turn on RAMBAR1 at address 20001000 set RAMBAR1 0x20001021 ; Init CS0 - 2M Boot Flash mem write 0x10000500 0xFF800000 mem write 0x10000508 0x00101980 mem write 0x10000504 0x001F0001 ; Init CS1 - 32M Code Flash mem write 0x1000050C 0xE0000000 mem write 0x10000514 0x00101980 mem write 0x10000510 0x01FF0001 ; SDRAM Initialization mem write 0x10000004 0x000002AA ; SDRAMDS configuration mem write 0x10000020 0x00000019 ; SDRAM CS0 configuration mem write 0x10000108 0x73722930 ; SDCFG1 mem write 0x1000010C 0x46370000 ; SDCFG2 mem write 0x10000104 0xE10F0002 ; SDCR + IPALL mem write 0x10000100 0x40010000 ; SDMR (write to LEMR) mem write 0x10000100 0x058D0000 ; SDRM (write to LMR) mem write 0x10000104 0xE10F0002 ; SDCR + IPALL mem write 0x10000104 0xE10F0004 ; SDCR + IREF (first refresh) mem write 0x10000104 0xE10F0004 ; SDCR + IREF (second refresh) mem write 0x10000100 0x018D0000 ; SDMR (write to LMR) mem write 0x10000104 0x710F0F00 ; SDCR (lock SDMR and enable refresh) wait 1000 [FLASH_28F160C3B] CHIP = 28F160C2/C3/C18-B ; flash chip ACCESS_METHOD = agent ; program method CHECK_ID = YES ; check chip ID CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0xFF800000 ; chip is mapped at 0xFF800000 FILE = "test32k.bin" bin 0xFF800000 AUTO_ERASE = NO ; erase before program AUTO_LOCK = NO ; lock after program [FLASH_28F256K3C] CHIP = 28F256K3C ; flash chip ACCESS_METHOD = agent ; program method CHECK_ID = YES ; check chip ID CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0xE0000000 ; chip is mapped at 0xE0000000 FILE = "myfile.bin" bin 0xE0000000 AUTO_ERASE = NO ; erase before program AUTO_LOCK = NO ; lock after 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 = "mcf5475> " ; telnet prompt ;BACKSPACE = 127 ; comment out for autodetect [DISPLAY] BRIGHTNESS = 20 ; LED indicator brightness VOLUME = 25 ; zummer 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