57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
; --------------------------------------------------------------------------------
|
|
; @Title: Start-Up script for MB86R0x Jade with data-trace.
|
|
; @Description:
|
|
; This script sets up an debug & trace session for
|
|
; MB86R0x. Starts an low-level code afterwards. Only data trace is
|
|
; used in this script.
|
|
; Set SW901.Pin4 OFF (Big Endian)
|
|
; Set SW901.Pin6 ON (ARM JTAG ENABLE)
|
|
; Set SW901.Pin1 OFF (MPX_MODE_5[0]=0, TRACE Mode)
|
|
; @Author: AME
|
|
; @Keywords: Jade
|
|
; @Board: XXSvideo-D
|
|
; @Chip: MB86R01, MB86R02, MB86R03
|
|
; @Copyright: (C) 1989-2022 Lauterbach GmbH, licensed for use with TRACE32(R) only
|
|
; --------------------------------------------------------------------------------
|
|
; $Id: start-tracedata.cmm 18877 2022-02-02 07:04:07Z bschroefel $
|
|
|
|
|
|
WinCLEAR
|
|
RESet
|
|
SYStem.RESet
|
|
SYStem.CPU MB86R02
|
|
SYStem.Option BigEndian OFF
|
|
SYStem.JtagClock RTCK
|
|
SYStem.Up
|
|
|
|
IF ANALYZER()
|
|
(
|
|
; PINMUX done by hardware switch
|
|
ETM.DataTrace Only
|
|
ETM.PortSize 4
|
|
ETM.PortMode 1/1
|
|
Trace.METHOD Analyzer
|
|
)
|
|
|
|
; load some code into SRAM
|
|
Data.LOAD.Elf ~~/demo/arm/compiler/gnu-pic/midi_arm.elf 0x01001000 /RelPATH
|
|
|
|
; stop at 'main'
|
|
Go main
|
|
WAIT !STATE.RUN()
|
|
|
|
; open some windows
|
|
List.auto
|
|
|
|
IF ANALYZER()
|
|
(
|
|
; Clear the Trace
|
|
Analyzer.Init
|
|
|
|
; selective Trace: writes on *mcount* only
|
|
Var.Break.Set mcount /Write /TraceENABLE
|
|
Analyzer.List
|
|
)
|
|
|
|
|