; --------------------------------------------------------------------------------
; @Title: RTEMS Demo for TRACE32 OS Awareness
; @Description:
;   This batchfile loads all necessary files to demonstrate
;   the OS Awareness for RTEMS.
; @Keywords: awareness, rtems, RTOS
; @Author: DIE
; @Chip: MPC860
; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: rtems.cmm 13125 2018-09-11 14:03:01Z rdienstbeck $


 SCREEN.ON                    ; all messages are displayed
 AREA.RESet
 WinPAGE.RESet
 WinCLEAR
 WinPOS 0. 27. 63. 7. 0. 0. W006
 AREA.view

; Debugger reset

 PRINT "resetting..."
 RESet

; Initializing Debugger

 PRINT "initializing..."

 SYStem.CPU MPC860
 SYStem.Up

; load sample application

 PRINT "loading sample application..."

 Data.LOAD.Elf sample.exe
 sYmbol.CLEANUP     ; cleanup type information

; initialize RTOS support
 PRINT "initializing RTOS support..."
 TASK.CONFIG ~~/demo/powerpc/kernel/rtems/rtems.t32     ; load RTEMS awareness
 MENU.ReProgram ~~/demo/powerpc/kernel/rtems/rtems.men  ; load RTEMS specific menu
 HELP.FILTER.Add rtosrtems      ; add RTEMS awareness manual to help filter

 PRINT "load complete."

; open some windows

 WinPOS 0. 0. 73. 23.
 List.auto

 WinPOS 30. 12. 80. 9.
 TASK.Thread

; start application

 Break.Set _Thread_Idle_body

 Go.direct Init
