add
This commit is contained in:
27
Src/Gen4_R-Car_Trace32/0_Doc/scripts/V4H/EVB/Start_test.cmm
Normal file
27
Src/Gen4_R-Car_Trace32/0_Doc/scripts/V4H/EVB/Start_test.cmm
Normal file
@@ -0,0 +1,27 @@
|
||||
// T32_1000138 Fri Sep 20 11:55:12 2019
|
||||
|
||||
SYStem.CPU R8A779G-CR52
|
||||
CORE.ASSIGN 1. ; Reset both cores
|
||||
CORE 0.
|
||||
|
||||
SYStem.Option IMASKASM ON
|
||||
SYStem.Option IMASKHLL ON
|
||||
SYStem.Option DUALPORT ON
|
||||
SYStem.MemAccess StopAndGo
|
||||
|
||||
SYStem.JtagClock 10.MHz
|
||||
|
||||
SYStem.Mode.Attach
|
||||
|
||||
break
|
||||
|
||||
|
||||
// 01. Download ELF File
|
||||
Data.LOAD.Elf C:\Work\3_Work_Src_Backup\MOBIS\MCAL-v4h-1_19.3.0.D_release(WDG)\rel\modules\wdg\sample_application\V4H\obj\arm\App_WDG_V4H_Sample.elf
|
||||
|
||||
// 02. Warm Reset
|
||||
CD.DO C:\Work\3_Src\Gen4_R-Car_Trace32\2_Trunk\demo\arm\hardware\rcar_v4h\r_carv4h-cr52\r_carv4h-cr52_warm_reset.cmm
|
||||
|
||||
Go.direct main
|
||||
|
||||
ENDDO
|
||||
@@ -0,0 +1,166 @@
|
||||
; --------------------------------------------------------------------------------
|
||||
; @Title: Simple demo script for R8A779G-CR52 on WhiteHawk (RAM)
|
||||
; @Description:
|
||||
; Loads the sieve demo application into RAM and sets up a demo debug
|
||||
; scenario.
|
||||
; Use this script for getting started.
|
||||
; Prerequisites:
|
||||
; * Connect Debug Cable/Combiprobe to CN1 (Main JTAG)
|
||||
; * Set boot core to Cortex-R52 and main JTAG to CoreSight. This can either be
|
||||
; done via a switch board or by programming the CPLD.
|
||||
;
|
||||
; Switch MD (Switch SW1 Pin[1:8]) settings. Mode switch board is connected to CN9 on the WhiteHawk-CPU board:
|
||||
; * Cortex-R52 boot
|
||||
; MD6 = 1 (SW1[1] = OFF)
|
||||
; MD7 = 1 (SW1[2] = OFF)
|
||||
; * SCIF download mode (not boot code is executed)
|
||||
; (SW1[3] = OFF)
|
||||
; MD8 = 1 (SW1[4] = OFF)
|
||||
; MD4 = 1 (SW1[5] = OFF)
|
||||
; MD3 = 1 (SW1[6] = OFF)
|
||||
; MD2 = 1 (SW1[7] = OFF)
|
||||
; MD1 = 1 (SW1[8] = OFF)
|
||||
; * Normal boot:
|
||||
; MD5 = 0 (SW2[1] = OFF)
|
||||
; MD35 = 0 (SW2[2] = ON)
|
||||
; * Main JTAG = CoreSight, Sub JTAG = Normal Function
|
||||
; MDT0 = 0 (SW2[3] = ON)
|
||||
; MD21 = 1 (SW2[4] = OFF)
|
||||
; MD20 = 0 (SW2[5] = ON)
|
||||
; MD11 = 0 (SW2[6] = ON)
|
||||
; MD10 = 0 (SW2[7] = ON)
|
||||
; (SW2[8] = OFF)
|
||||
;
|
||||
; @Keywords: ARM, Cortex-R52
|
||||
; @Props: Confidential
|
||||
; @Author: BES
|
||||
; @Board: WhiteHawk
|
||||
; @Chip: R8A779G
|
||||
; @Copyright: (C) 1989-2022 Lauterbach GmbH, licensed for use with TRACE32(R) only
|
||||
; --------------------------------------------------------------------------------
|
||||
; $Id: r_carv4h-cr52_sieve_sram.cmm 19524 2022-06-20 07:59:40Z bschroefel $
|
||||
|
||||
;WinCLEAR
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; Check prerequisites
|
||||
IF VERSION.BUILD.BASE()<145267.
|
||||
(
|
||||
PRINT %ERROR "Please use more recent Software! Contact support@lauterbach.com."
|
||||
ENDDO
|
||||
)
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; Initialize and start the debugger
|
||||
;RESet
|
||||
;SYStem.RESet
|
||||
|
||||
SYStem.CPU R8A779G-CR52
|
||||
SYStem.MemAccess DAP
|
||||
SYStem.JtagClock 10MHz
|
||||
SYStem.Option.DUALPORT ON
|
||||
SYStem.Mode.NoDebug
|
||||
SYStem.Mode.Attach
|
||||
|
||||
;CORE.ASSIGN 1.
|
||||
Trace.DISable
|
||||
ETM.OFF
|
||||
;SYStem.Up
|
||||
|
||||
;CORE 0.
|
||||
|
||||
Break
|
||||
|
||||
;GOSUB EnableATCM "0xE4000000"
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; DRCR.RBE=0 (RPC Read cache = OFF) for flash region access
|
||||
;Data.Set AD:0xEE20000C %LE %Long 0yXXXXxxxxXXXXxxxxXXXXxxx0XXXXxxxx
|
||||
|
||||
;Data.Set HD:0xE6170334 %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617033C %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617033C %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617033C %LE %Long 0xE6300011
|
||||
|
||||
;slee - Core1
|
||||
;Data.Set HD:0xE6170374 %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617037C %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617037C %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE617037C %LE %Long 0xE6300011
|
||||
|
||||
;slee - Core2
|
||||
;Data.Set HD:0xE61703B4 %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE61703BC %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE61703BC %LE %Long 0xE6300000
|
||||
;Data.Set HD:0xE61703BC %LE %Long 0xE6300011
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; Load demo program (uses internal RAM only)
|
||||
;Data.LOAD.Elf C:\Work\2_Customer\MOBIS\PRK3_(ADAS_Parking3)\Issue\Open_PMIC_Jira\20251002_debug_files\Binary\TIMEOUT_60ms\ADASPRK3.elf /nocode
|
||||
;Data.LOAD.Elf C:\Work\2_Customer\MOBIS\PRK3_(ADAS_Parking3)\Issue\Open_PMIC_Jira\20251002_debug_files\Binary\TIMEOUT_60ms\ADASPRK3.elf
|
||||
;Data.LOAD.Elf C:\Work\Src\Gen4_R-Car_MCAL\2_Trunk\MCAL-v4h-1_19.3.0.D_release\rel\modules\wdg\sample_application\V4H\obj\arm\App_WDG_V4H_Sample.elf /nocode
|
||||
Data.LOAD.Elf C:\Work\Src\Gen4_R-Car_MCAL\2_Trunk\MCAL-v4h-1_19.3.0.D_release\rel\modules\cddiic\sample_application\V4H\obj\arm\App_CDD_IIC_V4H_Sample.elf /nocode
|
||||
|
||||
; ============= Core 0
|
||||
Core.select 2
|
||||
register.set pc intvect_CoreExceptions
|
||||
Core.select 0
|
||||
|
||||
;register.set pc brsStartupEntryHyp
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;register.set pc intvect_CoreExceptions
|
||||
|
||||
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; Start program execution
|
||||
;Go.direct main
|
||||
;WAIT !STATE.RUN()
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; Open some windows
|
||||
;WinCLEAR
|
||||
Mode.Hll
|
||||
;WinPOS 0. 0. 116. 26.
|
||||
;List.auto
|
||||
;WinPOS 120. 0. 100. 8.
|
||||
;Frame.view
|
||||
;WinPOS 120. 14.
|
||||
;Var.Watch
|
||||
;Var.AddWatch %SpotLight ast flags
|
||||
;WinPOS 120. 25.
|
||||
;Register.view /SpotLight
|
||||
;break.Set Det_ReportError
|
||||
;break.Set Os_UnhandledExc
|
||||
;break.Set BswM_PreInit
|
||||
|
||||
;break.Set McutClock
|
||||
ENDDO
|
||||
|
||||
; ================================================================================
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
EnableATCM:
|
||||
(
|
||||
PRIVATE &addr
|
||||
PARAMETERS &addr
|
||||
|
||||
; Enable ACTM
|
||||
Data.Set C15:0x19 %Long (&addr&0xFFFFF000)|0x1B
|
||||
; Enable MPU at EL2, region 0 only
|
||||
;Data.Set C15:0x4001 %Long 0yXXXXxxxxXXXXxxxxXXXXxxxxXXXXxxx1
|
||||
;Data.Set C15:0x4116 %Long 0x1
|
||||
;Data.Set C15:0x4086 %Long (&addr&0xFFFFF000)
|
||||
;Data.Set C15:0x4186 %Long (&addr&0xFFFFF000)+0x7FC1
|
||||
|
||||
; Init values for ATCM, 64-bit access required by TRM
|
||||
Data.Set (&addr&0xFFFFF000)++0x7FFF %Quad 0x0
|
||||
)
|
||||
RETURN
|
||||
@@ -0,0 +1,73 @@
|
||||
// T32 Thu Jun 12 09:29:25 2025
|
||||
|
||||
B::
|
||||
|
||||
TOOLBAR ON
|
||||
STATUSBAR ON
|
||||
FramePOS -1.0,22.786,,,Maximized
|
||||
WinPAGE.RESet
|
||||
|
||||
WinPAGE.Create P000
|
||||
WinCLEAR
|
||||
|
||||
WinPOS 0.125 30.929 114. 13. 16. 1. W005
|
||||
WinTABS 10. 10. 25.
|
||||
l
|
||||
|
||||
WinPOS 0.0 0.0 114. 25. 14. 0. W000
|
||||
PEDIT "C:\Work\Src\Gen4_R-Car_Trace32\2_Trunk\scripts\V4H\Mobis\Lauterbach\RCAR_V4H_CR52_SRAM.cmm"
|
||||
|
||||
WinPOS 0.375 50.0 114. 15. 0. 0. W001
|
||||
Var.Watch
|
||||
|
||||
Var.AddWatch DbgApHwiop
|
||||
Var.AddWatch DbgApDcm
|
||||
Var.AddWatch DbgApNvm
|
||||
Var.AddWatch DbgApPdw
|
||||
Var.AddWatch DbgApNvm
|
||||
Var.AddWatch DbgApDem
|
||||
Var.AddWatch DbgApCom
|
||||
Var.AddWatch DbgApMw
|
||||
Var.AddWatch bootAppFlag_endOfCompleted
|
||||
Var.AddWatch HWP_ECU_Reset_Mode
|
||||
Var.AddWatch HWP_RM_Sleep_timer
|
||||
Var.AddWatch HWP_NVM_Read_Flag
|
||||
Var.AddWatch HWP_Reset_Flag
|
||||
Var.AddWatch HWP_V_ModeState
|
||||
Var.AddWatch HWP_PDC_V_IS_VBAT_Status
|
||||
Var.AddWatch HWP_PDC_ResetPreWrngForOthers
|
||||
Var.AddWatch HWP_PDC_pre_prewarning
|
||||
|
||||
|
||||
Var.AddWatch SERVER_LOOP_CNT
|
||||
Var.AddWatch WDG_DELY_CNT
|
||||
Var.AddWatch serve_counter_check
|
||||
Var.AddWatch WDG_CRC_EN
|
||||
Var.AddWatch PMIC_INIT_FLG
|
||||
Var.AddWatch stop_serve
|
||||
Var.AddWatch read_reg_0x108
|
||||
Var.AddWatch read_reg_0x109
|
||||
Var.AddWatch read_reg_0x12C
|
||||
Var.AddWatch read_reg_0x116
|
||||
Var.AddWatch read_reg_0x107
|
||||
|
||||
WinPOS 119.25 42.714 64. 16. 0. 0. W006
|
||||
SYStem.state
|
||||
|
||||
WinPOS 118.88 22.071 105. 9. 5. 0. W004
|
||||
Frame /Locals /Caller
|
||||
|
||||
WinPOS 118.88 37.286 105. 13. 0. 1. W003
|
||||
WinTABS 53. 31.
|
||||
sYmbol.Browse.sYmbol
|
||||
|
||||
WinPOS 118.88 10.071 105. 6. 26. 1. W002
|
||||
WinTABS 13. 0. 0. 0. 0. 0. 0. 0. 0. 51.
|
||||
Break.List
|
||||
|
||||
WinPOS 118.88 0.0 105. 4. 14. 0. W007
|
||||
PEDIT C:\Work\Src\Gen4_R-Car_Trace32\2_Trunk\scripts\V4H\Mobis\prk3_ecu_reset.cmm
|
||||
|
||||
WinPAGE.select P000
|
||||
|
||||
ENDDO
|
||||
@@ -0,0 +1,2 @@
|
||||
; ECU RESET
|
||||
PER.Set.simple ASD:0xE6160018 %Long 0x5AA58000
|
||||
Reference in New Issue
Block a user