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.

Assert in a custom module

Other Parts Discussed in Thread: SYSBIOS

Hello everyone,

(target C6678, CCS 5.5, BIOS 1.25, XDCTools 3.25)

I built a custom timestamp module here (http://e2e.ti.com/support/embedded/bios/f/355/t/303799.aspx)

and now I want to use asserts in it.

So in my Timestamp.xdc I have now

import xdc.runtime.Assert;
import xdc.runtime.Diags;

module Timestamp inherits ti.sysbios.interfaces.ITimestamp
{

    config Assert.Id A_TimestampError = {
        msg: "A_TimestampError : this is a timestamp test Error."
    };
}

but unfortunately when I build it : here's what I get

xdc --xdcpath="<mypath>/xdctools_3_25_03_72/packages;<mypath>/bios_6_35_04_50/packages;" all

making package.mak (because of package.bld) ...

js: "D:/CoralieDev/ccsv5/xdctools_3_25_03_72/packages/xdc/bld/BuildEnvironment.xs", line 146: TypeError: Cannot find function hasReportedError in object [object Object].

xdctools_3_23_04_60\gmake.exe: *** No rule to make target `package.mak', needed by `.interfaces'.  Stop.

I'm a bit confused about this error message.

Also I have two versions of XDC (3.23 and 3.25) installed. How can I make sure it uses xdc 3.25 ?

When I run xdc -n I see that the version 3.23 is used.

Thank you

Clement