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.

TCF file error with 5509a chip TCI file

Dear All,

I'm a newbie in TMS320 programming. I'd like to change some firmware code, presumably written in CCSV3 for a 5509a-based hardware. I am running CCS 4.2.3.

I converted the old DCB file into a TCF file using the utility dcb2tcf. Running the TCF file or attempting to open it in Gconf produces the following error:

js: "C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/config/bios_5509.tci", line 69: Illegal enumeration value: GBL.CHIPTYPE set to a

value outside the range "5509,5509a,5510PG1_2,5510PG2_0,5510PG2_1,5510PG2_2,custom,other"

Correct any script errors in C:/Users/Quoc/Documents/workspace/naxl1298/.gconf/naxl1298/naxl1298.tcf
using the Configuration Tool or a text editor, if necessary.

I can't get rid of this error. The original TCF file shows:

params.deviceName = "5509a";

params.catalogName = "ti.catalog.c5500";

...

bios.GBL.CHIPTYPE = "5509a";

 

which is a proper value for the range.

 

Could someone help?

Thanks in advance.

 

  • There was a bug filed about that problem a long time ago, but I am not sure if it was ever fixed. The workaround is to replace

    params.deviceName = "5509a";
    with
    params.deviceName = "5509A";

    in the TCF script. Please try it and let me know if the workaround fixes your problem.

  • Dear Sasha,

    It does not work. Could the error also come from the platform type?

    utils.loadPlatform("ti.platforms.generic", params);

    Thanks for the help.

     

     

  • Quoc,
    I was trying to reproduce your problem, but I couldn't see CHIPTYPE property in Gconf, in BIOS 5.41.09. It seems that CHIPTYPE is now set automatically. Please try one more simple thing, comment out the line that sets bios.GBL.CHIPTYPE, but leave the device name to be 5509A.

    If that doesn't work, could you please attach your TCF script or send it to me?

  • Dear Sasha,

    Thanks for your answer.

    Unfortunately, your suggestion does not work. However, changing the the device name from "5509a" or "5509A" to "5509" makes the TCF file loadable in GConf. The chip subtype in GConf can be changed to "5509a".

    The problem is now that TConf generates, from a seemingly valid TCF file, a ".s55" file that cannot be compiled, with syntax errors related to floating-point values improperly used (something that was mentioned in another post) and improper function calls (with arguments apparently missing). Maybe the "s55" file can be tweaked manually, but I have no idea how to fix it. I am running the latest version of Code Composer

    I cannot upload the TCF file here, the TI web site refuses it. I can be reached at qtn AT neuraccel DOT com (remove spaces in address)

    I am really stuck on this and would really appreciate if this could be solved.

    Thanks in advance for your help.

    Sincerely,

  • Can you please zip up your .tcf file and then attach the .zip file?   You can attach .zip files to forum.

    Which exact versions of BIOS and CCS are you using?   Just want to make sure we know what "latest" is.

    -Karl-

  • Dear Karl,

    Please find attached a ZIP file with the TCF file, the original CDB file and the resulting h55 and s55 files.

    The version infos are as follows:

    3036.naxl1298.zip

    CCS Version: 4.2.3.00004

    BIOS Version: DSP/BIOS 5.41.10.36

    C55xx CSL version is 2.31.00.9

    Thank you for your help.

    Sincerely,

    Quoc

  • Hello Quoc --

    I looked at your .tcf file and it looks fine except that I had to change this line:

    bios.GBL.CHIPTYPE = "5509A";

    After changing that line, I rebuild the configuration to generate the.s55 file.   I compared the .s55 from my build to the one you included in your .zip file and I see a lot of differences.

    Your .s55 file appears like it was generated from an old c55xx.cdb file.

    The first lines in your naxl1298.cdb file include the version information for the .cdb file that was used by tconf.   You are somehow still pointing to an old .cdb file!

    //!
    //# c55xx.cdb 4.90.280

    Did you copy c55xx.cdb from your 4.90 release atop the same file in your 5.41.10.36 release?    Are you building your project from within CCSv4?   Did you modify that tconf command line in any way?   We need to figure out how you are pointing to this old c55xx.cdb file.

    The c55xx.cdb file contains paramaters used when generating the .s55 and .cmd files.   These parameters must be in synch with the assembly macros in the assorted .h55 files (e.g. clk.h55, tsk.h55, etc.).   You are generating macros that match BIOS 4.90.   But using .h55 files from BIOS 5.41.10.36.   They are not in synch and you are having assembler build problems.

    -Karl-

     

  • Dear Karl,

    Many thanks. I must have goofed.

    The build requires a C55xx.cdb as a seed file. I have been using C55xx.cdb version 4.9 because I could not see any C55xx.cdb for version 5.41 in my installation under:

    C:\Program Files\Texas Instruments\bios_5_41_10_36\packages\ti\bios\config\cdb

    Should there be a C55xx.cdb 5.41 in the first place? If yes, could you send me that version?

    Thanks again.

     

    Sincerely,

  • Hi Quoc -- The c55xx.cdb file (lower-case 'c' but shouldn't matter) should be in the <biosinstalldir>/packages/ti/bios/config/cdb directory. Here's screenshot of my 5.41.10 installation:

     

  • Dear Karl,

    I re-installed CCS and modified the TCF file to change the "5509a" to "5509A". It now compiles fine with the correct version of the CDB file (although I am now fighting linking errors, but that's another story!).

    Thanks to all of you at TI for the help.

    Sincerely,