--------------------------------------------------------------------------- Thermal Control Demonstration - tcdemo --------------------------------------------------------------------------- This is the POSIX Threads version of tcdemo. To build the demo, type 'make'. Then to run the demo on the simulator, type 'make run'. The demo accepts the following commands: T1_ON T1_OFF T1_AUTO T1_MAN T2_ON T2_OFF T2_AUTO T2_MAN T3_ON T3_OFF T3_AUTO T3_MAN To switch targets you need to edit the Makefile. Here's the log for loading and running on the DEM32 board. Note that the "tar rem..." command responds with the current location of the program. In this case the response is "sched_yield.c:44" because we ran the demo earlier. $ make erc-coff-gcc -O2 -g -c tcdemop.cpp -o tcdemop.o erc-coff-gcc -O2 -g -c term-erc.cpp -o term-erc.o erc-coff-gcc -O2 -g -c tcu.cpp -o tcu.o erc-coff-gcc -O2 -g -c thread.cpp -o thread.o erc-coff-gcc -O2 -g -c telemetry.cpp -o telemetry.o erc-coff-gcc -O2 -g -c reader.cpp -o reader.o erc-coff-gcc -O2 -g -c buffer.cpp -o buffer.o erc-coff-gcc -O2 tcdemop.o term-erc.o tcu.o thread.o telemetry.o reader.o buffer.o -o tcdemop -lpthread -Wl,-Map=tcdemop.map $ erc-coff-gdb tcdemop XGC Debugger Version 4.17.gnat.3.11 for erc-coff Copyright (c) 1998 Free Software Foundation, Inc... (gdb) tar rem /dev/ttyS0 Remote debugging using /dev/ttyS0 sched_yield () at sched_yield.c:44 44 { Current language: auto; currently c (gdb) run Starting program: /hdb3/xgc/demo/tcdemop Thermal Control Demo M. Martignano - ESA/ESTEC/WME Copyright (C) 1997 ESTEC - ESA Strike '~' to exit... T1:0:0:0 T2:0:0:0 T3:0:0:0 TIME:01:00:00 INPUT: T1:0:0:0 T2:0:0:0 T3:0:0:0 TIME:01:00:01 INPUT: Program received signal SIGINT, Interrupt. 0x2000468 in CTerm::Body (this=0x21dfec0) at term-erc.cpp:28 28 sched_yield (); Current language: auto; currently c++ (gdb) q The program is running. Exit anyway? (y or n) y $