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.

xdctools do not generate proper #define

Other Parts Discussed in Thread: SYSBIOS

Here is the text from EK_TM41294XL.c:

 *  The following defines are used to determine which TI-RTOS peripheral drivers
 *  to include:
 *     TI_DRIVERS_EMAC_INCLUDED
 *     TI_DRIVERS_GPIO_INCLUDED
 *     TI_DRIVERS_I2C_INCLUDED
 *     TI_DRIVERS_SDSPI_INCLUDED
 *     TI_DRIVERS_SPI_INCLUDED
 *     TI_DRIVERS_UART_INCLUDED
 *     TI_DRIVERS_USBMSCHFATFS_INCLUDED
 *     TI_DRIVERS_WATCHDOG_INCLUDED
 *     TI_DRIVERS_WIFI_INCLUDED
 *  These defines are created when a useModule is done on the driver in the
 *  application's .cfg file. The actual #define is in the application
 *  generated header file that is brought in via the xdc/cfg/global.h.
 *  For example the following in the .cfg file
 *     var GPIO = xdc.useModule('ti.drivers.GPIO');
 *  Generates the following
 *     #define TI_DRIVERS_GPIO_INCLUDED 1

Here is the data from app.cfg from the imported udp echo example:

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 BIOS = xdc.useModule('ti.sysbios.BIOS');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var EMAC = xdc.useModule('ti.drivers.EMAC');
var Global = xdc.useModule('ti.ndk.config.Global');
var Tcp = xdc.useModule('ti.ndk.config.Tcp');
var Udp = xdc.useModule('ti.ndk.config.Udp');
var Ip = xdc.useModule('ti.ndk.config.Ip');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var DhcpClient = xdc.useModule('ti.ndk.config.DhcpClient');
var Emac = xdc.useModule('ti.ndk.config.Emac');
var GPIO = xdc.useModule('ti.drivers.GPIO');

As you can see app.cfg clearly indicates that a header file somewhere should be generated with the line:

#define TI_DRIVERS_EMAC_INCLUDED 1

I have used every tool in my arsenal to find any file that has that text to no avail.

xdc\cfg\global.h is looking for a symbol to be set "xdc_cfg__xheader__" somewhere.  I am lead to believe that the symbol should be generated automagically as part of the build process, but it is not happening.

Guidance needed on setting up the environment to make this happen.  Tools installed are CCS V6, TI RTOS Tiva C 2.00,  Tivaware v2.1.0, and xdc tools 3.30.01.

The project was imported from the UDP echo example.