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.

How to fix a property error reported by XDCTools?

Hi

I am building a 3rd party project targetted at the K2H device, using MCSDK v. 3.01.00,03.  The SYS/BIOS cfg file contains the lines:

var Pktlib = xdc.loadPackage('ti.runtime.pktlib');

Pktlib.Settings.deviceType = "k2h";

and I see the following error reported by xdctools:

line 270: XDC runtime error: ti.runtime.pktlib: no property named 'Settings'

I guess this is because of some package incompatibility or omission.

How would I go about solving this problem please?

Best regards

David

  • David,
    it seems that the package 'pktlib' doesn't have a module 'Settings', which usually means that the versions of two different products on your package path are not compatible. The first thing you would like to find out is where is that package found. If you are already familiar with that package, you might already know which product brings it in, and then you can check in the product's documentation which version of SYS/BIOS is supposed to work with it.
    A more generic solution for finding the location of a package is to use trace support in XDCtools and find a trace message that will tell you exactly where was the package loaded from. There are various examples on the linked Web page, but I think in your case it would be enough to define the environment variable XDC_TRACE_ENABLE to "load". I can't tell in which environment you are building, but if you are in CCS, there is also a way to define environment variables. Go to Project Properties->CCS Build->Environment.

  • Thanks for your answer.