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.

Never Ending .tcf File?

Guru 15580 points

I have been debugging my application for some time. As part of this debugging process I regularly try changing memory locations for certain sections of code and TSK priorities for various tasks. Each time I make a change it shows up in the .tcf file, as it should. However, the changes seem to be appended to the end of the file instead of removing the previous line of script. After debugging for a while my .tcf file has grown significantly with many redundant/old configurations appended onto the old configs. Is this normal? Is there some way to "clean" the .tcf file of all of my old test configurations?

Here is a short sample of some of my tests and the script generated:

bios.TSK.instance("TSK_processBuffer").order = 1;

bios.TSK.instance("TSK_dipMonitor").order = 3;

bios.TSK.instance("TSK_processBuffer").priority = 3;

bios.TSK.instance("TSK_processBuffer").priority = 2;

bios.TSK.instance("TSK_processBuffer").priority = 3;

bios.TSK.instance("TSK_dipMonitor").order = 1;

bios.TSK.instance("TSK_processBuffer").order = 2;

bios.TSK.instance("TSK_idle").order = 3;

bios.TSK.instance("TSK_dipMonitor").priority = 2;

Thx,

MikeH

  • I don't know if there's an automated way to clean it, but you can certainly remove all of the old/redundant lines. For each parameter, only the last value set is actually used, so you can delete all of the lines that set it to other values.

  • Thanks Chris. However, I find this an odd and cumbersome way to generate a script file. It's also a PITA to do what you have suggested. I have only posted a small section of a very large and confusing file.

  • Hi,

    I have too wondered how to cut out redundant code once I stop modifications to the configurations. Certainly for a finalized project it seems reasonable to be able to clean-up the code in the .tcf to keep the most recent changes and remove all previous redundant history. I have not tried it yet, but it seems (and if there is no possibility for corrupting the .tcf file) that by importing into excel and just sorting the lines by name, one could then just delete the redundant lines and keep the relevant code. I may eventually try this ...

    An automated way that does not introduce any errors in cleaning the .tcf file would be great to have, if it exists ?

    Regards, M