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.

Error when trying to use self-created platform definition: "can't resolve name xdc.platform.IPlatform.peripherals"

Hi,

I've just created a new C6678-Platform (Tools->RTSC Tools->Platform->New) on CCS 5.4, however when I tried to select it in a project's RTSC configuration, it was not listed in the Combo-Box where the existing platforms can be chosen.

Instead I got the error messages included at the end of this post.

As I am pretty sure this is a bug in CCS 5.4 I would welcome it if this post will be forwarded to the development team.

Regards, Clemens


xdc.services.spec.SessionRuntimeException: msm_nocache: can't resolve name xdc.platform.IPlatform.peripherals
    at xdc.services.spec.Persist$Input.resolveObject(Persist.java:166)
    at java.io.ObjectInputStream.checkResolve(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.util.ArrayList.readObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at java.util.ArrayList.readObject(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at xdc.services.spec.BrowserSession.loadPkg(BrowserSession.java:198)
    at xdc.services.spec.BrowserSession.findPkg(BrowserSession.java:116)
    at org.eclipse.rtsc.xdctools.ui.utils.RtscPackageFilter.isPkgInPath(Unknown Source)
    at org.eclipse.rtsc.xdctools.ui.utils.RtscPackageFilter.accept(Unknown Source)
    at java.io.File.listFiles(Unknown Source)
    at org.eclipse.rtsc.xdctools.ui.utils.XDCUtils.getPackageList(Unknown Source)
    at org.eclipse.rtsc.xdctools.ui.utils.XDCUtils.getRTSCPlatforms(Unknown Source)
    at org.eclipse.rtsc.xdctools.ui.utils.XDCUtils.getRTSCPlatforms(Unknown Source)
    at org.eclipse.rtsc.xdctools.ui.RTSCUtilsServer2.getRTSCPlatforms(Unknown Source)
    at org.eclipse.rtsc.xdctools.managedbuild.core.RTSCServer.getPlatforms(RTSCServer.java:127)
    at org.eclipse.rtsc.project.ui.dialogs.RTSCSettingsPage$21.run(RTSCSettingsPage.java:1312)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)



  • Clemens,
    which versions of XDCtools have you installed in CCS, and which version of XDCtools are you using in the project for which you tried to use your platform? I have seen a problem similar to yours when a project is built with XDCtools 3.24 and one of the packages in the project (possibly your new platform) was built with 3.25. Could you post your platform here, or at least the directory 'package'? That directory contains RTSC metadata that could help me figure out what happened.

  • Hi Sasha,

    Indeed the project was using XDCTools 3.23, after switching to XDCTools 3.25 CCS-5.4 finds the platform definition and everything works as expected.
    Thanks a lot for your suggestion :)

    Regards, Clemens