📄 nucleus.cmm
字号:
;--------------------------------------------------------------------------
;
; Nucleus Plus Demo for TRACE32 multitask debugger
;
; This batchfile loads all necessary files to demonstrate
; the Multitask-Debugger for Nucleus Plus.
;
; Created by Rudolf Dienstbeck / Lauterbach GmbH at 10.01.2002
;
;--------------------------------------------------------------------------
; NOTE:
; currently the demo runs with Simulator or ICD on ADS821
screen.on
; Emulator reset
print "resetting..."
SYStem.RESet
MAP.RESet
winpage.reset
WINPOS 0 20. 70. 8. 0. 0. W000
area
; initialize system
print "initializing..."
if simulator()
(
SYStem.CPU MPC821
SYStem.Up
)
if icd()
(
SYStem.BdmClock 5000000.
SYStem.CPU MPC821
SYStem.Up
; adapt it to your path
do ..\..\hardware\ads821\ads821.cmm
)
if ice()
(
SYStem.Option premapmod on
SYStem.Option base 0x2200000
SYStem.Mode AloneInt
; System settings for PPC860 probe
d.s spr:638. %l 0x2200000
d.s 0x2200100--0x220013f %l 0x0
d.s 0x2200100 %l 0x01
d.s 0x2200104 %l 0x0ff009A4
R.S MSR 0x1002
r.s dec 0x0ffff
; TBSCR
d.s 0x2200200 %l 0x0966b0002
)
; Default mapping
if ice()
(
map.pre 0x0--0x0fffff 0.
map.def 0x0--0x0fffff
)
if fire()
(
map.i 0x0--0x0fffff
)
; load sample application
print "loading sample application..."
Data.LOAD.Elf history/demo.elf // contains History Component
;Data.LOAD.Elf dbug+/demo.cof // contains DBUG+
; skip UART Init function for simulator usage
if simulator()&&y.exist(UART_Init_Port)
D.A P:UART_Init_Port blr
; initialize mutitasking support
print "initializing multitask support..."
screen.off
TASK.CONFIG nucleus
MENU.ReProgram nucleus
HELP.FILTER.Add rtosnucleus
print "load complete."
; open some windows
WINPOS 0 0 74. 9. 0. 1. W001
TASK.TaskStat
WINPOS 0 12. 80. 3. 0. 1. W003
TASK.QueueStat
WINPOS 50. 6. 70. 21.
Data.List
; open DBUG+ terminal, if available
if y.exist(T32OUT)
term T32OUT T32IN
go task_1
enddo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -