Squashed all commits
This commit is contained in:
43
Debug/ps7/Aufgabe2/windowSetting.cmm
Normal file
43
Debug/ps7/Aufgabe2/windowSetting.cmm
Normal file
@@ -0,0 +1,43 @@
|
||||
// T3210000 Wed Sep 27 07:34:53 2017
|
||||
|
||||
B::
|
||||
|
||||
TOOLBAR ON
|
||||
STATUSBAR ON
|
||||
FramePOS ,,,,Maximized
|
||||
WinPAGE.RESet
|
||||
|
||||
WinPAGE.Create P000
|
||||
WinCLEAR
|
||||
|
||||
WinPOS 0% 0% 50% 78% ,,, W000
|
||||
;WinTABS 10. 10. 25. 62.
|
||||
wm.List.auto
|
||||
|
||||
WinPOS 50% 0% 30% 28% ,,, W001
|
||||
;WinTABS 13. 0. 0. 0. 0. 0. 0.
|
||||
wm.Break.List
|
||||
|
||||
WinPOS 50% 30% 30% 70% ,,, W002
|
||||
wm.Var.Watch %Hex %Decimal
|
||||
|
||||
VAR.ADDWATCH OSPrioCur
|
||||
|
||||
WinPOS 80% 0% 20% 50% ,,, W003
|
||||
wm.Register /SPOTLIGHT
|
||||
|
||||
WinPOS 0% 80% 50% 20% ,,, W004
|
||||
wm.Symbol.browse \\*\*\*
|
||||
;WinPAN 0. 239.
|
||||
|
||||
;WinPOS 50% 50% 30% 50% ,,, W005
|
||||
;wm.Perf.ListFunc
|
||||
|
||||
WinPos 80% 50% 20% 50% ,,, W006
|
||||
wm.Frame /Locals
|
||||
|
||||
|
||||
|
||||
WinPAGE.select P000
|
||||
|
||||
ENDDO
|
||||
80
Debug/ps7/Aufgabe2/zc706_onchip_trace.cmm
Normal file
80
Debug/ps7/Aufgabe2/zc706_onchip_trace.cmm
Normal file
@@ -0,0 +1,80 @@
|
||||
LOCAL &ppd
|
||||
&ppd=OS.PPD()
|
||||
&tmpDir=OS.PTD()
|
||||
|
||||
WinCLEAR
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; common SYStem settings
|
||||
PRINT "Assigning Cores"
|
||||
|
||||
CD &ppd
|
||||
RESet
|
||||
System.RESet
|
||||
SYStem.CPU ZYNQ-7000
|
||||
SYStem.CONFIG CORE 1. 1.
|
||||
SYStem.CONFIG SLAVE OFF
|
||||
CORE.ASSIGN 1.
|
||||
|
||||
; set DaisyChaining Parameters of the board
|
||||
; check e.g. SYStem.DETECT.ShowCHAIN
|
||||
PRINT "Setting up DaisyChain Parameters"
|
||||
SYStem.CONFIG DAPIRPRE 6.
|
||||
SYStem.CONFIG DAPIRPOST 0.
|
||||
SYStem.CONFIG DAPDRPRE 1.
|
||||
SYStem.CONFIG DAPDRPOST 0.
|
||||
|
||||
; trigger a soft-reset using the AHB Bus -> we loose the connection
|
||||
PRINT "Trigger Soft-Reset"
|
||||
SYStem.Mode.Prepare
|
||||
ON ERROR CONTinue
|
||||
Data.Set EAHB:0xF8000008 %Long 0xDF0D
|
||||
Data.Set EAHB:0xF8000200 %Long 0x1
|
||||
WAIT 0.1s
|
||||
PRINT ""
|
||||
ON ERROR inherit
|
||||
|
||||
PRINT "Attach and initialize"
|
||||
SYStem.Mode.Attach
|
||||
Break
|
||||
|
||||
PRINT "initializing the target"
|
||||
DO "~~/demo/arm/hardware/zynq-7000/scripts/trace/ps7_init.cmm" "&ppd/../ps7_init.tcl"
|
||||
|
||||
PRINT "programming the FPGA design"
|
||||
LOCAL &bitfile
|
||||
&bitfile="&ppd/../base_zynq_wrapper.bit"
|
||||
DO "~~/demo/arm/hardware/zynq-7000/scripts/zynq_bitstream" "&bitfile" 0x00100000
|
||||
|
||||
; --------------------------------------------------------------------------------
|
||||
; initialize ONCHIP trace (ETM)
|
||||
Trace.Method Onchip
|
||||
ETM.TraceID 1.
|
||||
ETM.Trace ON
|
||||
ETM.ON
|
||||
|
||||
Trace.Clock 666MHz
|
||||
ETM.TimeMode CycleAccurate
|
||||
|
||||
; Some optional settings
|
||||
SETUP.Var %SpotLight
|
||||
MAP.BOnchip 0x0--0xffffffff // force onchip-breakpoints
|
||||
MODE.HLL
|
||||
|
||||
; load code
|
||||
Data.LOAD.Elf "&ppd/../../../out/Aufgabe2_ps7_core0.elf"
|
||||
|
||||
; run to main
|
||||
Go main
|
||||
WAIT !STATE.RUN()
|
||||
|
||||
; open some windows
|
||||
DO windowSetting.cmm
|
||||
|
||||
; initialize RTOS support
|
||||
PRINT "initializing uC/OS-II support..."
|
||||
TASK.CONFIG ../ucos ; load uC/OS-II Awareness
|
||||
MENU.ReProgram ../ucos.men ; load uC/OS-II Menu
|
||||
HELP.FILTER.Add rtosucos ; add ucos awareness manual to help filter
|
||||
|
||||
ENDDO
|
||||
Reference in New Issue
Block a user