;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix ; ; Supported devices : Atmel SAM3, SAM4, SAMV7, SAMD20, SAME51 ; ; Revision : 1.0 ; ; Date : April 26, 2018 ; ; 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 ARM PLATFORM = CortexM3_SWD ; platform is ARM [PLATFORM_CortexM3] JTAG_CHAIN = 4 ; list of TAP controllers in the JTAG chain JTAG_CLOCK = 100, 4000 ; JTAG Clock in [kHz] TRST_TYPE = OPENDRAIN ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 100 ; length of RESET pulse in ms; 0 means no RESET CORE0 = CortexM4, 0 ; TAP is Cortex-M4 CPU CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = HARD, 0x08000000, 0x08020000 ; breakpoint mode CORE0_WORKSPACE = 0x20000000, 0x4000 CORE0_SWO = 0, 2001 ; Mailbox 0, TCP/IP-Port 2001 ;CORE0_INIT = INIT_ATSAM CORE0_FLASH = FLASH_ATSAM ; FLASH section parameters CORE0_PATH = "tftp://192.168.3.60" ; default path [PLATFORM_CortexM3_SWD] SWD_CLOCK = 2000 ; SWD Clock in [kHz] TRST_TYPE = OPENDRAIN ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 0 ; length of RESET pulse in ms; 0 means no RESET CORE0 = Cortex-M CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = HARD, 0, 0x1000 ; breakpoint mode CORE0_WORKSPACE = 0x20000000, 0x8000 ;CORE0_INIT = INIT_ATSAM ; init section for AT91SAM4L CORE0_FLASH0 = FLASH_ATSAM CORE0_FLASH1 = FLASH_SAME5_NO_RESTORE CORE0_SWO = DWT, 10000 ;CORE0_SWO = 0, 2001 ;CORE0_SWO = 1, 10002 ;CORE0_SWO = 2, 10003 ;CORE0_PROFILING = 0, 0x80000, 0x100000 CORE0_PATH = "tftp://192.168.3.60" ; default path [INIT_ATSAM] ; Module name, Base address ; BPM 0x400F0000 ; SCIF 0x400E0800 ; PM 0x400E0000 memory write 0x400F0018 0xAA00001C ; Unlock the PMCON register memory write 0x400F001C 0x00000006 ; Change the power scaling to mode 2 wait 5 memory write 0x400E0818 0xAA000020 ; Unlock the OSCCTRL0 register memory write 0x400E0820 0x00010207 ; Configure and enable the OSC0 wait 5 memory write 0x400E0818 0xAA000024 ; Unlock the PLL0 register memory write 0x400E0824 0x0F010011 ; Configure and enable the PLL0 for Fpll=48MHz wait 5 memory write 0x400E0058 0xAA000000 ; Unlock the MCCTRL register memory write 0x400E0000 0x00000002 ; Select PLL as main clock source [FLASH_ATSAM] CHIP = ATSAM FILE = "test32k.bin", 0x400000 ; file to program [FLASH_SAME5_NO_RESTORE] CHIP = ATSAM FILE = "same54_x_plained_user_cal.bin", 0x0804000 ; SAME5x, SAMD5x ; By default PEEDI preserves the calibration data ; at the begin of USER page. ; With 'PRESERVE_CAL_DATA = NO' the 32-bytes calibration data is ; not restored. PRESERVE_CAL_DATA = NO [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "atsam> " ; 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 [erase] ; erase flash flash this erase ; SAMD20, SADE51 - mass erase using DSU [prog] ; program flash flash program "test12.bin" 0x200 erase