;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Analog Devices BF532 ; Board : BlackfinOne board ; ; Revision : 1.4 ; ; Date : June 11, 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, 20000 ; JTAG Clock in [kHz] - 10kHz jtag clock for init operations and 10MHz for normal work JTAG_TDO_DELAY = AUTO ; auto tune JTAG TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL CORE0 = BF532 ; TAP is BF532 CPU CORE0_STARTUP_MODE = reset CORE0_BREAKMODE = soft ; breakpoint mode: ; soft - software breakpiont ; hard - use hardware breakpoints instead of software CORE0_INIT = INIT_BF532 ; init section for the board CORE0_FLASH0 = FLASH_AT49BV322AT ; flash section parameters CORE0_FLASH1 = FLASH_DATA ; flash section parameters CORE0_ENDIAN = LITTLE ; core is little endian CORE0_WORKSPACE = 0xFFA08000, 0x4000 ; start address and length in bytes for agent code CORE0_DATASPACE = 0xFF804000, 0x4000 ; start address and length in bytes for agent data CORE0_FILE = "myfile.bin", BIN, 0 ; default file CORE0_PATH = "tftp://192.168.3.1" ; default path ;CORE0_OS = OS_UCLINUX26 [OS_UCLINUX26] BASE = 4, 0x17AC20 NEXT = 4, -0xC0 NEXT_THREAD = 4, -0x158 PID = 4, 0xFC NAME = 16, 0x1E8 CODE_START = 4, 0xDC, 0x78 DATA_START = 4, 0xDC, 0x80 BSS_START = 4, 0xDC, 0x84 ; context got from stack 1 ;CONTEXT = 40*4, 0x208, 0 ;CONTEXT_REG = pc, 0x18 ;CONTEXT_REG = fp, 0x28 ;CONTEXT_REG = usp, 0x24 ;CONTEXT_REG = sp, 0x24 ; kernel threads context - got from stack CONTEXT = 40*4, 0x208, 0 CONTEXT_REG = fp, 0x1C CONTEXT_REG = pc, 0x20 ; context got from thread_struct ;CONTEXT = 0x18, 0x208 ;CONTEXT_REG = pc, 0x10 ;CONTEXT_REG = sp, 0x0 ;CONTEXT_REG = usp, 0x4 [INIT_BF532] ; Configure SCLK & CCLK Dividers mem write16 0xFFC00004 3 ; set PLL mem write16 0xFFC00010 0x300 mem write16 0xFFC00000 0x2800 ; 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 [FLASH_AT49BV322AT] CHIP = AT49BV322AT ; 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 = 0x20000000 ; chip is mapped at 0x20000000 FILE = "ftp://user:pass@192.168.0.1/myfile.bin" BIN 0x20000000 AUTO_ERASE = YES ; erase before program AUTO_LOCK = NO ; lock after program [FLASH_DATA] CHIP = AT45_DATAFLASH ; the DataFlash chip will be autodetected CPU = BF5XX ; CPU type: BlackFin SPI_DIV = 8 ; Value to be set to the SPI_BAUD register SPI_CS = 2 ; DataFlash /CS pin is connected to SPI chip select 2 - PF2 FILE = "test.bin", BIN, 0 [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 ; TCP_PORT = 2023 [TELNET] PROMPT = "bf532> " ; 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.0.1/ram.bin [dump_flash] ; dump part of FLASH memory dump 0x20000000 0x10000 tftp://192.168.0.1/flash.bin