This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-CC1352P7: The example provided in section 3.8 of the TI RTOS documentation for implementing HWi, SWi, Task threads does not build.

Part Number: LP-CC1352P7
Other Parts Discussed in Thread: SYSBIOS, CC1352P7, SYSCONFIG

Tool/software:

Reading through the document for TI-RTOS kernel, the user guide, I decided to implement of the example because it demonstrates how the different thread types work and how we can implement them in a standard way. 

Particularly, on the page 101 of the TI-RTOS kernel user guid document, section 3.8 we have an example that begins as:

Fullscreen
1
2
3
4
5
6
7
8
9
10
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/hal/Timer.h>
#include <ti/sysbios/knl/Semaphore.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Queue.h>
#include <xdc/cfg/global.h>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
However, when I try to build I get:
Fullscreen
1
fatal error: 'xdc/cfg/global.h' file not found
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NOTE: I first created an empty example from the TI_RTOS driver example directory, and removed everything and added the above include directives.
 
Also, I know that I am supposed to have a configuration script somewhere in my project, but I do not know how to add that.
The document specifically says to create the configuration script as (Partly mentioned):

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Log = xdc.useModule('xdc.runtime.Log');
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory')
var SysMin = xdc.useModule('xdc.runtime.SysMin');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');
var Timer = xdc.useModule('ti.sysbios.hal.Timer');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
Program.argSize = 0x0;
System.maxAtexitHandlers = 4;
BIOS.heapSize = 0x2000;
/* System stack size (used by ISRs and Swis) */
Program.stack = 0x1000;
/* Circular buffer size for System_printf() */ SysMin.bufSize = 0x400;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


I am trying to build this example using CSS on a MacBook.
Could you please tell me what I should do  to make this example build?

Thanks.