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.

Getting "xdc.MODULE_NOT_FOUND" error when building package for rts6000

Other Parts Discussed in Thread: TMS320C6415, CCSTUDIO

Configuration:

WinXP

DSP/BIOS version 6.21.00.13

CCSv4 4.1.0

Code gen tools (C6000) 6.1.12

XDC tools 3.16.02.32

XDAIS 6.25.01.08

Problem:

I've converted a C application under the 5.xx (CCSv3.3) version of DSP/BIOS to one under 6.xx using the ti.bios.conversion utility. After the conversion I've tried to build the application only to run into a number of problems some of which I've been able to resolve(?). The current sticking point is this when I execute the "xdc" command...

C:\Program Files\Texas Instruments\bios_6_21_00_13\packages\ti\targets\rts6000>xdc
making package.mak (because of package.bld) ...
js: "./config.bld", line 11: XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no
module named ti.targets.rts6000 in the package ti.targets
making package.mak (because of package.bld) ...
js: "./config.bld", line 11: XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no
module named ti.targets.rts6000 in the package ti.targets
all files complete.

where it seems to be unable to find the module "rts6000". However, the rtx6000 directory is in the path XDCPATH/packages/ti/targets where

XDCPATH was set to XDCPATH=C:/Program Files/Texas Instruments/bios_6_21_00_13/packages and then tried with

XDCPATH=C:/Program Files/Texas Instruments/bios_6_21_00_13

with no luck using either.

Without this module, I've been stuck at trying to use the xdc.tools.configuro command which yields this similar problem...

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: configPkg/linker.cmd'
'Invoking: XDCtools'
"C:/Program Files/Texas Instruments/xdctools_3_16_02_32/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_21_00_13/packages";"C:/Program Files/Texas Instruments/ipc_1_00_05_60/packages";"C:/Program Files/Texas Instruments/xdais_6_25_01_08/packages";"C:/Program Files/Texas Instruments/xdais_6_25_01_08/examples"; xdc.tools.configuro -o "configPkg" -t ti.targets.rts6000 -p ti.platforms.generic -r debug -b "config.bld" -c "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.12" "../bios_6.cfg"
making package.mak (because of package.bld) ...
js: "./config.bld", line 5: XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no module named ti.targets.rts6000 in the package ti.targets
xdctools_3_16_02_32\gmake.exe: *** No rule to make target `.configuro'.  Stop.
js: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [configPkg/linker.cmd] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

I've been in this particular hell for a couple of days trying different things. The paths seem to be set correctly including the windows search path.

Any help would be appreciated.

 

  • David Milner said:
    making package.mak (because of package.bld) ...
    js: "./config.bld", line 11: XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no
    module named ti.targets.rts6000 in the package ti.targets

    The xdc.MODULE_NOT_FOUND error is fairly straight forward, it is looking for a rts6000.xdc file which it cannot find where you told it to look. I think the problem here is that there is no ti.targets.rts6000 module, just a package, so my initial thought would be that this is an error in the conversion process, where an invalid use/loadModule('ti.targets.rts6000') was added to your configuration file.

    My suspicion is that this would be fixed if you changed rts6000 to whatever your actual target type is (i.e. ti.targets.C64P or ti.targets.C64 etc...).

    Have you made any changes to your config.bld file manually?

  • Yes, I made changes to the CCSv4 build options per instructions in XDC user’s guide which says to modify the config.bld file in my workspace as part of the conversion process. It said to use the xdc.loadCapsule() api and to pass the “.xs” output file from the ti.bios.conversion process . This file included memory definitions converted from the 5.xx world and a platformTable that configured thins like the clockrate, the devicename and the memory map.

     

    This caused problems listed below:

     

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all

    'Building target: configPkg/linker.cmd'

    'Invoking: XDCtools'

    "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/xs" --xdcpath="C:/Program Files/Texas Instruments/bios_6_21_00_13/packages";"C:/Program Files/Texas Instruments/ipc_1_00_05_60/packages";"C:/Program Files/Texas Instruments/xdais_6_25_01_08/packages";"C:/Program Files/Texas Instruments/xdais_6_25_01_08/examples"; xdc.tools.configuro -o "configPkg" -t ti.targets.C64P -p ti.platforms.generic -r debug -b "config.bld" -c "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.12" "../bios_6.cfg"

    configuring bios_6.x64P from package/cfg/bios_6_x64P.cfg ...

    error: ti.platforms.generic.Platform: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/ti/platforms/generic/Platform.xs", line 169: ti.platforms.generic.Platform.Instance#0 : Parameter deviceName must be specified  for 'ti.platforms.generic' platform.

    error: ti.platforms.generic.Platform: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/ti/platforms/generic/Platform.xs", line 194: ti.platforms.generic.Platform.Instance#0 : Parameter catalogName must be specified  for 'ti.platforms.generic' platform.

    js: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/xdc/cfg/Main.xs", line 125: Error: Configuration failed!

    error: ti.platforms.generic.Platform: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/ti/platforms/generic/Platform.xs", line 203: ti.platforms.generic.Platform.Instance#0 : Parameter clockRate must be specified  for 'ti.platforms.generic' platform.

    error: xdc.platform.Utils: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/xdc/platform/Utils.xs", line 145: xdc.platform.Utils : can't create an xdc.platform.ICpuDataSheet instance; the platform's CPU catalog package 'undefined' not imported

    xdctools_3_16_02_32\gmake.exe: *** [package/cfg/bios_6_x64P.c] Error 1

    js: "C:/Program Files/Texas Instruments/xdctools_3_16_02_32/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [configPkg/linker.cmd] Error 1

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

     

    Here is the platform.xs file:

    Build.platformTable['ti.platforms.generic:generic'] = {

     

          clockRate: 1000,

     

          catalogName: 'ti.catalog.c6000',

     

          deviceName: 'TMS320C6415',

     

          customMemoryMap: memory

     

    };

     

    Which specifies the deviceName, clockRate and the catalog name which are flagged as unspecified by the error messages.

     

     

    From: TI E2E Community - Automated Email [mailto:noreply@e2e.ti.com]
    Sent: Tuesday, February 02, 2010 2:44 PM
    To: Milner, David Alvin (US SSA)
    Subject: Code Composer Forum: Re: Getting "xdc.MODULE_NOT_FOUND" error when building package for rts6000

     

    Bernie Thompson replied to Re: Getting "xdc.MODULE_NOT_FOUND" error when building package for rts6000 in Code Composer Forum.

    David Milner said:
    making package.mak (because of package.bld) ...
    js: "./config.bld", line 11: XDCException: xdc.MODULE_NOT_FOUND: xdc.module: no
    module named ti.targets.rts6000 in the package ti.targets

    The xdc.MODULE_NOT_FOUND error is fairly straight forward, it is looking for a rts6000.xdc file which it cannot find where you told it to look. I think the problem here is that there is no ti.targets.rts6000 module, just a package, so my initial thought would be that this is an error in the conversion process, where an invalid use/loadModule('ti.targets.rts6000') was added to your configuration file.

    My suspicion is that this would be fixed if you changed rts6000 to whatever your actual target type is (i.e. ti.targets.C64P or ti.targets.C64 etc...).

    Have you made any changes to your config.bld file manually?

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------

    You were sent this email because you opted to receive email notifications when someone responded to this forum thread.

    To unsubscribe from:

    1.     Only this thread, disable notifications here.

    2.     All notifications from TI E2E Community, go to Edit Profile, click on the Site Options tab, then under Email Configuration, set Send Notifications to "No".

  • I'm sorry that you are having problems with the migration and getting this strange error.   Would be great if you could zip up and attach your files and send them to support@ti.com so we can take a look at them.   Please reference this forum topic in the email to support@ti.com so that they can route the files to us.


    Please note that DSP/BIOS 6.21 does _not_ support the 6415 device.  The list of supported devices is provided in the release notes.   We provide DSP/BIOS 5.41 with CCSv4.1 to support existing designs and allow people using earlier versions of DSP/BIOS to use CCSv4.

    Regards,
    -Karl-

  • Thank you for the answer. I was successful in getting things to work under 5.41 but wanted to see if there was a path to the use of 6.xx.

  • yeah, in user.bld, when cgtoolsRootDir: "C:/CCStudio_v3.3/C6000/cgtools/bin", will cause  xdc.MODULE_NOT_FOUND

    the comment said:

    // specify the "root directory" for the compiler tools. NOTE: make sure the directory you specify has a "bin" subdirectory, so do this:

                    cgtoolsRootDir: "C:/CCStudio_v3.3/C6000/cgtools",