;-------------------------------------------------------------------------- ; ; ; PEEDI sample target configuration file ; ; Ronetix GmbH ; ; Supported devices : Renesas RZ/V2N ; Supported board : Ronetix RNX-RZV2N-SMARC ; ; The SPI Flash programming works only in SCIF Download mode ; ; Date : Dec 19, 2025 ; ; ; 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_24MAY2013, 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.1.1/license.txt ; or ; FILE=eep:license.txt ; or ; FILE = ftp://user:password@192.168.1.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 = Cortex [PLATFORM_Cortex] JTAG_CHAIN = 4 ; list of TAP controllers in the JTAG chain JTAG_CLOCK = 10000 ; JTAG Clock in [kHz] TRST_TYPE = PUSHPULL ; type of TRST output: OPENDRAIN or PUSHPULL RESET_TIME = 20 ; length of RESET pulse in ms WAKEUP_TIME = 20 ; delay after power up TIME_AFTER_RESET = 200 ; delay after RST is released CORE0_VERBOSE_INFO = 0 ; print info if CORE0_DEBUG_ADDR is not defined CORE0_DEBUG_ADDR = 0x1F410000, 0x1F420000 ; CoreSight Debug component CORE0 = Cortex-ARMv8_AMP, 0, 0x5BA00477 ; TAP is Cortex-A CPU 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_A55 CORE0_FLASH0 = SPI_FLASH_BL2 CORE0_FLASH1 = SPI_FLASH_FIP CORE0_WORKSPACE = 0x08000000, 0x8100 ; total 1.5MB SRAM, used 32KB CORE0_PATH = "tftp://192.168.3.5" ; To enable the M33 core, enter in the console: ; mem write 0x10420C0C 0 ; ; CPG_CM33_CTL, CM33 reset released ; after: ; ++ info: core 0: connected ; ++ info: core 0: initialized ; ++ info: core 1: using AHB port 2 ; ++ info: core 1: using SYSRESETREQ [] CORE1 = Cortex-M CORE1_APSEL = 2 CORE1_STARTUP_MODE = RESET CORE1_INIT = INIT_M33 CORE1_ENDIAN = LITTLE CORE1_BREAKMODE = SOFT CORE1_WORKSPACE = 0x08000000, 0x8100 ; total 1.5MB SRAM, used 32KB CORE1_PATH = "tftp://192.168.3.5" [INIT_M33] [INIT_A55] mem write 0x10470008 0x00000000 ; Allow access to xSPI(Initialize TZC400_XSPI) mem write 0x10420304 0x11000100 ; Set xSPI clock mem write 0x10420500 0x10001000 ; Divisor=1/4 mem write 0x10413C04 0x000000A0 ; R_BSP_OENAccessEnable mem and 0x10413C40 0xFFFFFFC3 ; Configures XSPI output Enable mem write 0x10413C04 0x00000080 ; R_BSP_OENAccessDisable mem write 0x10420624 0x80008000 ; Start clock supply mem write 0x10420628 0x00030003 ; Start clock supply mem write 0x10420D0C 0x00200000 ; R_BSP_MSTP_START mem write 0x10420D10 0x00200000 ; R_BSP_MSTP_START mem write 0x10420928 0x00180018 ; reaser release ; enable M33 core mem write 0x1043080c 0x08003000 ; SYS mem write 0x10430810 0x18003000 ; SYS_MCPU_CFG2 mem write 0x10420604 0x00040004 ; CPG_CLKON_1 mem write 0x10420C1C 0x00003100 ; CPG_LP_CM33_CTL1 mem write 0x10420C0C 0x00000001 ; CPG_CM33_CTL, CM33 reset asserted mem write 0x10420904 0x00380008 ; CPG_RST_1 mem write 0x10420904 0x00380038 ; CPG_RST_1 ; use this command in the PEEDI console ;mem write 0x10420C0C 0x00000000 ; CPG_CM33_CTL, CM33 reset released ; XSPI mem and 0x11030108 0xFFFEFFFF ; LIOCTL_b.RSTCS0 = 0 wait 10 mem or 0x11030108 0x00010000 ; LIOCTL_b.RSTCS0 = 1 mem write 0x11030050 0x00000000 ; xSPI configuration mem and 0x11030000 0xFFFFE0FF ; WRAPCFG_b.DSSFTCS0 = 0 mem write 0x11030050 0x00060000 mem write 0x11030010 0x00000008 ; Specifies the read/write commands and Read dummy clocks mem write 0x11030014 0x0000EB00 mem write 0x11030018 0x00003300 mem or 0x11030060 0x00000003 ; BMCTL0 mem write 0x11030008 0x00000F80 mem and 0x11030070 0xFFFFFFF7 ; CDCTL0.CSSEL, bit3=0 - CS0, bit3=1 - CS1 [SPI_FLASH_BL2] CHIP = SPI25_FLASH CPU = RENESAS_RZV FILE = "bl2_bp.bin", BIN, 0 [SPI_FLASH_FIP] CHIP = SPI25_FLASH CPU = RENESAS_RZV FILE = "fip.bin", BIN, 0x1D200 [SERIAL] BAUD = 115200 STOP_BITS = 1 PARITY = NONE TCP_PORT = 0 [TELNET] PROMPT = "rzv2n> " ; 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 erase 0 0 ; chip erase [prog] ta at wait 3000 f e 0 1024*1024 ; program flash flash prog bl2_bp-rnx-rzg2ul-osm.bin 0 flash prog fip.bin 0x1D200 ta de [prog2] ta at wait 3000 f e 0 1024*1024 ; program flash flash prog bl2_bp.bin 0 flash prog fip.bin 0x1D200 ta de