; --------------------------------------------------------------------------------
; @Title: embOS Demo for TRACE32 OS Awareness
; @Description: 
;   This batchfile loads all necessary files to demonstrate
;   the OS Awareness for embOS.
; @Keywords: awareness, embOS, RTOS
; @Author: DIE
; @Chip: MPC860
; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: embos.cmm 13125 2018-09-11 14:03:01Z rdienstbeck $


; Debugger reset
 PRINT "resetting..."
 RESet
 WinPAGE.RESet
 WinPOS 0 24. 70. 8. 0. 0. W000
 AREA.view

 PRINT "initializing..."

; Debugger initializations
 IF SIMULATOR()
   SYStem.CPU MPC860
 SYStem.Up
 
; load sample application
 PRINT "loading sample application..."
 Data.LOAD.auto hello_world.elf
 
; initialize RTOS support
 PRINT "initializing embOS support..."
 TASK.CONFIG ~~/demo/powerpc/kernel/embos/embos.t32     ; load embOS awareness
 MENU.ReProgram ~~/demo/powerpc/kernel/embos/embos.men  ; load embOS specific menu
 HELP.FILTER.Add rtosembos  ; add embOS awareness manual to help filter
 TASK.STacK.PATtern 0xCD    ; task stacks are initialized with 0xcd

 PRINT "load complete."

; open some windows
 WinPOS 0. 0. 60. 6.
 TASK.TaskList
 WinPOS 50. 6. 70. 21.
 List

; start application
 Go MainTask
 
ENDDO
 
