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.

Migrating DSP/BIOS 5 to SYS/BIOS6 issues

Other Parts Discussed in Thread: SYSBIOS, CCSTUDIO

While trying to migrate DSP/BIOS 5 application to the SYS/BIOS 6, I am running into problems with the conversion tool. Based on the "2.4 Steps to Convert a Tconf Script to RTSC Configuration Script" on page 8 of the "Migrating a DSP/BIOS 5 Application to SYS/BIOS 6" document, I should use the "xs -–xp= "%XDCPATH%" ti.bios.conversion –c myConfig.cfg –-pr <full path to repository location> --pn myPlatform <filename>.tcf" command, but when I running the following "xs" command: 
 
xs --xp= "C:\dev\CCS5\bios_6_32_00_28\packages" ti.bios.conversion -c myConfig.cfg --pr "./cfg/SysBios/Repository" --pn "./myPlatform" input.tcf

I got the error messages:

js: "C:/dev/CCS5/xdctools_3_22_00_09/packages/xdc/xdc.tci", line 331: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'XDCPATH' along the path: 'C:\dev\CCS5\xdctools_3_22_00_09/packages;'. Ensure that the package path is set correctly.

On my Windows XP PC,
1. The "User variables" in the Environment Variables setting:
XDCPATH: c:/dev/CCS5/bios_6_32_00_28/packages

2. The "System Variables" in the Environment Variables setting:
XDCPATH c:/dev/CCS5/bios_6_32_00_28/packages
XDCROOT c:\dev\CCS5\xdctools_3_22_00_09

Could someone provide some helps?

Thanks,
Allen

  • Allen,

    Your XDCPATH definition shows that you are using forward slashes ('/'); however, your xs invocation shows backward slashes. 

    The app note actually shows the xs invocation as follows:

    >xs -–xp= "%XDCPATH%" ti.bios.conversion –c myConfig.cfg –-pr <full path to repository location> --pn myPlatform <filename>.tcf

    Are you adhering to that?  I thinik the presence of the backward slashes in your xs invocation is the problem...

    Dave

  • Allen,
    try removing the space between '=' and "C:\dev\CCS5\bios_6_32_00_28\packages". I think the conversion guide is incorrect when it asks for a space character between those two.

  • Hi David,

    I wish that is the problem. but with the forward slashes in the xs command, I still got similar error messages:

    xs --xp= "C:/dev/CCS5/bios_6_32_00_28/packages" ti.bios.conversion -c myConfig.cfg --pr "./cfg/SysBios/Repository" --pn "./myPlatform" input.tcf

    js: "C:/dev/CCS5/xdctools_3_22_00_09/packages/xdc/xdc.tci", line 331: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'C:/dev/CCS5/bios_6_32_00_28' along the path: 'C:\dev\CCS5\sdctoos_3_22_00_09/packages;' . Ensure that the package path is set correctly.

    Using the '--xp= "%XDCPATH%" in the command also results the similar error message.

    Thank you for the help,

    Allen

     

  • I've filed a bug to ensure that this issue is tracked and fixed:

    SDOCM00082365 BIOS legacy app note has incorrect conversion tool command

     

  • Hi Sasha,

    Removing the "space" has fixed the "PACKAGE_NOT_FOUND" problem. Thank you for the great help!

    But I run into "Can't modify read-only field" error after that:

    >xs --xp="C:/dev/CCS5/bios_6_32_00_28/packages" ti.bios.conversion -c myConfig.cfg --pr "./cfg/SysBios/Repository" --pn "./myplatform" input.tcf

    js: Can't modify read-only field

    js: Can't modify read-only field

    Platform: gonkulator

         params.clockRate:1000

         params.catalogName:ti.catalog.c6000

         params.deviceName:6455

    Target: ti.targets.C64P

    Clock Rate: 1000

    js: "C:/dev/CCS5/bios_6_32_00_28/packages/ti/bios/conversion/Main.xs", line 91: Error: ti.bios.conversion: InternalError: Error

     

    Could you help me to check?

     

    Thanks,

    Allen

     

     

  • Allen,
    can you attach your TCF script? I remember seeing scenarios where the conversion tool would configure a heap in a memory object before enabling heaps in that memory object. For example, if you have:

    bios.L1DSRAM.enableHeapLabel = true;
    bios.L1DSRAM["heapLabel"]    = prog.extern("L1DHEAP");
    bios.L1DSRAM.heapSize        = 0x800;
    somewhere above that code you should have
    bios.L1DSRAM.createHeap      = true;
    If the last statement is missing, you would get the error you are seeing. But, there could be other causes.
  • Hi Sasha,

    You have solved most of our problems. Thank you so much for the great helps!

    Best regards,

    Allen

  • Hi,

    I've the following command

    xs --xp="C:\ti\bios_6_32_04_49\packages" ti.bios.conversion "C:\CCStudio_v3.3\rtfs_1_10_02_32\packages\ti\rtfs\examples\mmcsd\bios5\mmcsdSample.tci" -Dconfig.platform=ti.platform.evm6747 -i -c SYSBIOS6RKLT.cfg --pr "C:\myRepository" --pn evm6747 rklt.tcf

    I used RTFS in my project in CCSV3.3 with DSP/BIOS 5. I've received the following error

    js: "C:/ti/bios_6_32_04_49/packages/ti/bios/conversion/Main.xs", line 91: Error: ti.bios.conversion: ReferenceError: "bios" is not defined.

    Could you please help me on this?

    Kind regards,

    Rizuan

  • Hi RIZUAN ,

    Can you please attach your rklt.tcf file?

    Thanks,

    Steve

  • So has this been fixed? I'm getting the same error:

    js: "C:/TI/xdctools_3_23_02_47/packages/xdc/xdc.tci", line 340: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.bios.conversion' along the path: 'C:\TI\xdctools_3_23_02_47/packages;C:\TI\xdctools_3_23_02_47/packages;'. Ensure that the package path is set correctly.

    I ran this two days ago and it worked. Just tried to run it and got the above error.

    Is there a fix?

  • Mark,
    your problem is different. You are missing SYS/BIOS in your package path. Look at the first post and the option --xp as an example how to add SYS/BIOS to the package path.

  • ...never mind...found my error.