;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix GmbH ; ; Supported devices : i.MXRT1020 ; 0x00000000 - ITCM up to 256KB, good for workspace ; 0x20000000 - DTCM up to 256KB ; 0x20200000 - OCRAM up to 256KB, not good for workspace larger then 8 KB ; ITCM + DTCM + OCRAM = max 256 KB ; ; Revision : 1.0 ; ; Date : June 3, 2020 ; ; 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 ; debug protocol REMOTE_PORT = 2000 ; TCP/IP port FLASH = FLASH_RT1020 ; flash section to be used when programming via gdb [TARGET] PLATFORM = Cortex-M_SWD [PLATFORM_Cortex-M_SWD] SWD_CLOCK = 8000 ; SWD Clock in [kHz] TRST_TYPE = OPENDRAIN ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; length of RESET pulse in ms; 0 means no RESET TIME_AFTER_RESET = 10 CORE0 = Cortex-M ; TAP is Cortex-M CPU CORE0_RESET_MODE = vectreset CORE0_STARTUP_MODE = RESET ; stop the core immediately after reset CORE0_ENDIAN = LITTLE ; core is little endian CORE0_BREAKMODE = SOFT ; breakpoint mode CORE0_INIT = INIT_RT1020 CORE0_FLASH0 = FLASH_RT1020 CORE0_WORKSPACE = 0x00000000, 0x8000 ; workspace for agent programming ;CORE0_SWO = 0, 2001 CORE0_PATH = "tftp://192.168.3.60" ; default path [INIT_RT1020] mem write 0x400AC040 0x00200007 ; FLEXRAM_BANK_CFG_SEL = 1 ; setup 1/2 memory as OCRAM and 1/2 as ITCM ; Note: OCRAM is not suitable for workspace mem write 0x400AC044 0x0000FF55 ; FLEXRAM_BANK_CFG mem write 0xE000ED14 0x200 ; SCB->CCR - disable I/D-cache mem write 0xE000EF50 0 ; SCB->ICIALLU - invalidate I-cache mem write 0xE000EF74 0 ; SCB->DCCISW mem write 0xe000ed94 0 ; MPU_CTRL, disable MPU ; disable watchdog ;mem write16 0x400B8000 4 ; WDOG1->WCR ;mem write16 0x400D0000 4 ; WDOG2->WCR ;mem write 0x400BC004 0xD928C520 ; RTWDOG->CNT ;mem write 0x400BC008 0xFFFF ; RTWDOG->TOVAL ;mem and 0x400BC000 ~0x80 ; RTWDOG->CS ;mem or 0x400BC000 0x20 ; RTWDOG->CS ; Disable Systick which might be enabled by bootrom ;mem and 0xE000E010 ~0x01 ; Enable all clocks mem write 0x400FC068 0xFFFFFFFF mem write 0x400FC06C 0xFFFFFFFF mem write 0x400FC070 0xFFFFFFFF mem write 0x400FC074 0xFFFFFFFF mem write 0x400FC078 0xFFFFFFFF mem write 0x400FC07C 0xFFFFFFFF mem write 0x400FC080 0xFFFFFFFF ; setup SPI pins mem write 0x401F816C 0x1 ; B1_05 is FlexSPI_A_DQS mem write 0x401F82E0 0x10F1 ; Fast Slew Rate mem write 0x401F8170 0x1 ; B1_06 is FlexSPI_A_DATA3 mem write 0x401F8374 0x0 mem write 0x401F82E4 0x10F1 ; Fast Slew Rate mem write 0x401F8174 0x1 ; B1_07 is FlexSPI_A_SCK mem write 0x401F8378 0x0 ; Selecting Pad, GPIO_SD_B1_07 for Mode - ALT1 mem write 0x401F82E8 0x10F1 ; Fast Slew Rate mem write 0x401F8178 0x1 ; B1_08 is FlexSPI_A_DATA0 mem write 0x401F8368 0x0 ; Selecting Pad, GPIO_SD_B1_08 for Mode - ALT1 mem write 0x401F82EC 0x10F1 ; Fast Slew Rate mem write 0x401F817C 0x1 ; B1_09 is FlexSPI_A_DATA2 mem write 0x401F8370 0x0 mem write 0x401F82F0 0x10F1 ; Fast Slew Rate mem write 0x401F8180 0x1 ; B1_10 is FlexSPI_A_DATA1 mem write 0x401F836C 0x0 mem write 0x401F82F4 0x10F1 ; Fast Slew Rate mem write 0x401F8184 0x1 ; B1_11 is FlexSPI_A_SS0 mem write 0x401F82F8 0x10F1 ; Fast Slew Rate [FLASH_RT1020] CHIP = SPI25_FLASH CPU = NXP_FSPI_RT10XX ; flash chip ACCESS_METHOD = AGENT ; use agent programming AUTO_ERASE = NO ; erase before program FILE = test512k.bin 0x0000000 ; file to program [SERIAL] ; serial port configuration BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "rt1020> " ; 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 3 = dump_ram 4 = dump_flash [erase] ; erase flash flash erase [prog] ; program flash flash prog