Two demos available. Pass one of the arguments to CMake.
demo_mutex.c
../shell/rebuild_run_qemu.sh . -DDEMO_MUTEX_C:BOOL=ON
demo_race.c
../shell/rebuild_run_qemu.sh . -DDEMO_RACE_C:BOOL=ON
default demo.c
../shell/rebuild_run_qemu.sh .
Introduction to RTOS Part 6 - Mutex
$ ../shell/rebuild.sh . -DDEMO_MUTEX:BOOL=ON
$ ../shell/run_qemu.sh ./build/demo
char device redirected to /dev/pts/1 (label serial1)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ ../shell/rebuild.sh . -DDEMO_RACE:BOOL=ON
$ ../shell/run_qemu.sh ./build/demo
char device redirected to /dev/pts/1 (label serial1)
1
1
2
2
3
3
4
5
Use demo_init function in demo.c to implement your demo application.
Run in debug console to dump the trace
-exec dump binary value trace.bin *RecorderDataPtr