;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Analog Devices ADSP-BF537 ; Board : Bluetechnix CM-BF537 ; : ADDS-BF537-STAMP ; ; Revision : 1.4 ; ; Date : July 13, 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 = BLACKFIN ; platform is BLACKFIN [PLATFORM_BLACKFIN] JTAG_CHAIN = 5 ; list of IR lenght of all TAP controller in JTAG chain JTAG_CLOCK = 10, 25000 ; JTAG Clock in [kHz] - 10kHz jtag clock for init operations and 25MHz for normal work TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL CORE0 = BF537 ; TAP is BF537 CPU CORE0_STARTUP_MODE = reset CORE0_BREAKMODE = soft ; breakpoint mode: ; soft - software breakpiont ; hard - use hardware breakpoints instead of software CORE0_INIT = INIT_BF537 ; init section for the board CORE0_FLASH0 = U-BOOT CORE0_FLASH1 = FLASH_CFI CORE0_ENDIAN = LITTLE ; core is little endian CORE0_WORKSPACE = 0xFFA00000, 0x4000 ; start address and length in bytes for agent code CORE0_DATASPACE = 0xFF800000, 0x4000 ; start address and length in bytes for agent data ; Note: ; AGENT programming doesn't work with virtual memory CORE0_VMEM = 0x30000000, 0x800000 ; 8MB FLASH is virtually mapped at 0x30000000 CORE0_VMEM_WINDOW = 0x20000000, 0x200000 ; physically the FLASH is visible through a 2MB window at 0x20000000 CORE0_VMEM_ADDRESS_PINS = PF4, PF5 ; FP4 and PF5 are used to drive A20 and A21 of the FLASH ; 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.60" ;CORE0_PATH = "card://" CORE0_FILE = "myfile.bin", BIN, 0 ; default file [INIT_BF537] ; Configure SCLK & CCLK Dividers mem write16 0xFFC00004 3 ; set PLL ;mem write16 0xFFC00000 0x3000 ; PLL_CTL, 600MHz CPU clock mem write16 0xFFC00000 0x2800 ; PLL_CTL, 500MHz CPU clock mem write16 0xFFC00004 0x0005 ; PLL_DIV, 100MHz system clock (500MHz/5) mem write16 0xFFC00010 0x0300 ; PLL_LOCKCNT ; write and execute PLL setup sequence mem write16 0xFFA08000 0x0030 ; cli r0 mem write16 0xFFA08002 0x0020 ; idle mem write16 0xFFA08004 0x0040 ; sti r0 mem write16 0xFFA08006 0x0025 ; break go 0xFFA08000 ; start CPU wait 1000 stop ; wait 1s to break set pc 0x20000000 ; restore PC ; init SDRAM mem write16 0xFFC00A18 0x081C mem write16 0xFFC00A14 0x0011 mem write 0xFFC00A10 0x00911149 ; enable all Async banks mem write16 0xFFC00A00 0x00FE [U-BOOT] CHIP = CFI_FLASH ACCESS_METHOD = DIRECT ; AGENT doesn't work with remapping CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0x30000000 ; chip is mapped at 0x30000000 FILE = "test32k.bin" BIN 0x30000000 AUTO_ERASE = NO AUTO_LOCK = NO ; Use this profile when no virtual mapping is defined ; ; Programming speed with S29JL032J70BHI320 ; AGENT Mode - 107 KB/s [FLASH_CFI] CHIP = CFI_FLASH ACCESS_METHOD = DIRECT ; AGENT doesn't work with remapping CHIP_WIDTH = 16 ; chip is in 16 bit configuration CHIP_COUNT = 1 ; one chip is used BASE_ADDR = 0x20000000 ; chip is mapped at 0x20000000 FILE = "test32k.bin" BIN 0x30000000 AUTO_ERASE = NO AUTO_LOCK = NO [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 ; TCP_PORT = 2023 [TELNET] PROMPT = "bf537> " ; 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 [dump_ram] ; dump part of RAM memory dump 0x00000000 0x01000 tftp://192.168.1.1/ram.bin [dump_flash] ; dump part of FLASH memory dump 0x20000000 0x10000 tftp://192.168.1.1/flash.bin