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.

CCS: Cannot edit previously created custom RTSC platform

Tool/software: Code Composer Studio

Hello,

I'm using a custom RTSC platform definition for my project.  I'm able to create and build it, but the problem comes when I go to edit it afterwards. I can't.  Below is a picture of the error I get (with IP names edited out).  The package name does not exist in the pulldown menu (there is nothing in either).  

This worked at a previous time, but something changed, so it doesn't anymore.  I may have seen some E2E references about this happening if any of the tools versions change, but it wasn't clear.  

At this time, when needing to make any platform change, I'm required to recreate it, with the changes.

Please advise,

Robert

  • Robert,
    what's the name of the package in the error message "Can't load package ..."? Is it a name of your package or a package coming from XDCtools?
    What is the name of your platform, as declared in package.xdc in the platform package? Does it include 'platform' as a first component of a name?
  • Hi,

    Sasha Slijepcevic said:
    Robert,
    what's the name of the package in the error message "Can't load package ..."? Is it a name of your package or a package coming from XDCtools?

    is name of my package (redacted for IP reasons)

    Sasha Slijepcevic said:

    What is the name of your platform, as declared in package.xdc in the platform package? Does it include 'platform' as a first component of a name?

    same name as above, without 'platform'.  Let's just call it "one", and here is the package.xdc content

    /*!
    * File generated by platform wizard. DO NOT MODIFY.
    *
    */

    package one {
    module Platform;
    }

    Robert
  • When a platform is loaded, there are usually some other packages that the platform depends on, and these packages must be loaded first. The error message you are seeing indicates that type of error.
    Sometimes, a file .log in the directory .metadata in your workspace contains some extra info that can help debug the problem. Can you look there for any kind of a relevant warning or error?
    Also, can you post a screenshot of your installed products from Window->Preferences->Code Composer Studio->Products->RTSC?
  • Sasha Slijepcevic said:
    When a platform is loaded, there are usually some other packages that the platform depends on, and these packages must be loaded first. The error message you are seeing indicates that type of error.
    Sometimes, a file .log in the directory .metadata in your workspace contains some extra info that can help debug the problem. Can you look there for any kind of a relevant warning or error?

    I believe this entry in .log reflects the problem, and is reproduced each time

    !ENTRY org.eclipse.rtsc.xdctools.ui 2 0 2018-03-21 14:53:23.498
    !MESSAGE one: cant find referenced package ti.platforms.generic

    Sasha Slijepcevic said:

    Also, can you post a screenshot of your installed products from Window->Preferences->Code Composer Studio->Products->RTSC?

    Platform: actually contains my platform name
  • I have a similar setup, and ti.platforms.generic is found in my SYS/BIOS installation. Just to be sure check that your SYS/BIOS installation contains ti/platforms/generic in the directory 'packages'.

    Have you installed any other versions of SYS/BIOS and XDCtools other than the ones I can see in the Products and Repositories tab? What's the version of CCS you are using?
    I can't reproduce the problem as of now, and these problems are difficult to figure out without reproducing them.
  • Sasha Slijepcevic said:
    I have a similar setup, and ti.platforms.generic is found in my SYS/BIOS installation. Just to be sure check that your SYS/BIOS installation contains ti/platforms/generic in the directory 'packages'.

    It is there.

    Sasha Slijepcevic said:


    Have you installed any other versions of SYS/BIOS and XDCtools other than the ones I can see in the Products and Repositories tab?What's the version of CCS you are using?

    I have ... more than one version of each, when doing the initial port from DSP-BIOS (needed earlier versions for the translation of the .tcf file to .cfg, etc).  In all honesty, they were cluttering up my c:\ti directory, and complicating my continued attempt to port to sys-bios.  Plus in the end, I only need the latest versions I'm using (6.53.1.03 and 3.50.4.43).  So I simply cut the other directories out of my c:\ti directory (and saved them off somewhere else).  Perhaps this just cut-and-paste of these earlier versions threw things off?, that I needed to do a formal uninstall of each?

    Robert

  • Is there a way to manually edit the platform, maybe via platform.xdc, to make changes? So in the meantime, while figuring out what is wrong with the GUI not being able to edit, I can make changes without having to generate a new one each time.
  • Yes, you can make a change in Platform.xdc, and then you need to go that directory and run the command:
    <path to XDCtools>/xdc

    As for removed versions of SYS/BIOS and XDCtools, you should uninstall them by going to Window->Preferences->Code Composer Studio->Products. I doubt that will fix the problem, but who knows.
  • Sasha Slijepcevic said:
    Yes, you can make a change in Platform.xdc, and then you need to go that directory and run the command:
    <path to XDCtools>/xdc

    As for removed versions of SYS/BIOS and XDCtools, you should uninstall them by going to Window->Preferences->Code Composer Studio->Products. I doubt that will fix the problem, but who knows.

    proper uninstalls didn't help

    tried to do the xdc, but error'd out like this:

    TIME=04:04:44.448 PM -- xdc: loadPackage: xdc.services.intern.xsr --> xdc.services.global (packageLoad, all)
    TIME=04:04:44.449 PM -- xdc: loadPackage: xdc.services.intern.xsr --> xdc (packageLoad, all)
    TIME=04:04:44.449 PM -- xdc: loadPackage: xdc.services.intern.xsr --> xdc.corevers (packageLoad, all)
    TIME=04:04:44.451 PM -- xdc: loadPackage: xdc.services.intern.gen --> xdc (packageLoad, all)
    TIME=04:04:44.452 PM -- xdc: loadPackage: xdc.services.intern.gen --> xdc.corevers (packageLoad, all)
    TIME=04:04:44.454 PM -- xdc: loadPackage: xdc.services.intern.cmd --> xdc (packageLoad, all)
    TIME=04:04:44.460 PM -- xdc: loadPackage: xdc.services.intern.cmd --> xdc.corevers (packageLoad, all)
    translating Platform
    "one/Platform.xdc", line 8: can't resolve name (ti.platforms.generic.Platform.Instance)
    error: compilation of package.xdc failed: parser failed

  • I forgot to add the xdcpath option to the command you need
    <path to XDCtools>/xdc XDCPATH=<path to SYS/BIOS>/packages
  • Sasha Slijepcevic said:
    I forgot to add the xdcpath option to the command you need
    <path to XDCtools>/xdc XDCPATH=<path to SYS/BIOS>/packages

    Yeah, just did, and it appeared to complete ok ;)

    TIME=04:09:58.648 PM -- xdc: loadPackage: xdc.services.intern.gen --> xdc.corevers (packageLoad, all)
    TIME=04:09:58.650 PM -- xdc: loadPackage: xdc.services.intern.cmd --> xdc (packageLoad, all)
    TIME=04:09:58.651 PM -- xdc: loadPackage: xdc.services.intern.cmd --> xdc.corevers (packageLoad, all)
    translating Platform
    all files complete.

    temporary fix for platform update, anyways.  thanks.