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.

cdb2tcf utility did not produce expected CSL related files

I am migrating a 55xx DSP project involving BIOS and CSL from CCSv3.1 to V4. I have a cdb file that I have converted using CDB2TCF. The expected CSL files are not generated, even though the program output suggests that they are. The original BIOS was 4.9.270. I have 5.41.10.36.

The invoking command and output follows

C:\ADS1298_next\ads1298evm-mmb0>cdb2tcf ads1298evm-mmb0.cdb
Application: ads1298evm-mmb0.cdb
Original seed file: c:/program files/texas instruments/bios_5_41_10_36/packages/
ti/bios/config/update/4.90.270/c55xx.cdb
Loading application CDB file
Device name: 5509a
Catalog: ti.catalog.c5500
Generating CSL files
Unloading the application CDB file
Loading original seed: c:/program files/texas instruments/bios_5_41_10_36/packag
es/ti/bios/config/update/4.90.270/c55xx.cdb
Finding user changes
Loading new seed file
New seed: c:/program files/texas instruments/bios_5_41_10_36/packages/ti/bios/co
nfig/cdb/c55xx.cdb
Applying changes
Warning: Field CSLNAME no longer exists in cdb file.
Saving original ads1298evm-mmb0.cdb in ads1298evm-mmb0.cdb.Tue_Feb_15_08.47.25_2
011
Creating TCF file: C:/ADS1298_next/ads1298evm-mmb0/ads1298evm-mmb0.tcf
Tconf search path information is required for running the generated tcf file.
The search path info for the Tconf.exe command line has been saved in
tcfopts.dat.
In the Setup Guide that is part of the BIOS 5.41.02.14 Help file available in CCS, part 5 of the CDB2TCF conversion procedures states
"If your configuration made any CSL (Chip Support Library) settings, cdb2tcf generates two files: <project>_csl.c and <project>_csl.h. "
 
When I run the CDB2TCF conversion utility, it states the following
Generating CSL files
I can't find these files. I have searched through my various drives for these csl related files, and through the TI user forums for a problem where the cdb2tcf conversion utility does not produce them, but cannot find anything. I would appreciate any help that you could provide in generating these files.
  • How much CSL configuration do you have in your original app?    I think you can see the results of the CSL configuration in your appcfg_c.c file in your 4.9 project.  You can probably copy the important stuff from this generated _c.c file into a new file in your new project.

    If you zip up and attach your original .cdb file and the generated ._c.c, .cmd, and .s55 files (make it a .zip and attach to this forum), then we can take a closer look.

    -Karl-

  • Hi Karl

    The answer to your first question is, I'm not really sure. The original app came from TI.  I had a look at the _c.c file and there is not a lot there seemingly

    I've zipped up the four files that you requested and attached the archive here.

    3225.Files_for_Karl.zip

    Thanks

    Richard

  • Richard,

    I took at look at the *.cdb that you attached.  I see that none of the CSL modules were enabled or used.  This explains why the generated*.c file does not contain any CSL code.

    Judah

  • Richard --

    Based on what Judah says, you should not need the generated CSL code in the .c file.   Are you having a problem with the app after you did the migration?  Seems like you should have everything you need in the new .tcf file which generates new .c and .cfg files.

    -Karl-

  • HI Karl and Judah

    Yes I am having a problem; the app does not work after the migration. After booting from the USB port, the port does not re-enumerate. I had expected that the lack of CSL related files was the reason.

    I am fairly confident that the app makes extensive use of the CSL. Can the CSL code be used without any of the modules being enabled or used in the .cdb file as Judah points out? I would not have thought so, but my understanding may be incorrect.

    Richard

  • Richard,

    From my re-collection of CSL, I do think its possible to use CSL without using the GUI configuration.  I think this is most likely what's going on with your original project since your original cdb file had none of the CSL modules enabled.  Have you looked into what changed between the CSL versions (I'm hoping there some release notes)?  Not knowing what the problem is, my best guess is that some init API like "CSL_init" needs to be called before using CSL APIs.

    Judah

  • Hi Judah

    I don't think there were any changes in the CSL. I'll look into whether there were, and also double check if I used use CSL_init correctly.

    Richard