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.

CacheTune tool

Other Parts Discussed in Thread: CCSTUDIO, TMS320C6474

Hello !!

I'm working on C64x+ DSP and I wish to use the CacheTune tool from the C64x+ Cycle Accurate Simulator (Little Endian).

As asked, I launch the Profile Setup and select : "Collect Application Level Profile for Total Cycles and Code Size", "Collect Data on Cache Accesses Over a Specific Address Range" and "Collect Cache Information over time".

I enable Profiling and then I build, load and execute my program. Finally, from the Profile Menu, I select Tuning and CacheTune and it crashes (CCS informed me that "An Unexpected Fatal Error Encountered...".

So could you tell me why ? Does CacheTune tool run with C64x+ Cycle Accurate Simulator (Little Endian) ? How could I do for solving this issue ?

D'avance merci

Bubsy

 

 

 

  • CacheTune should run with the cycle accurate simulator, I am curious what version of CCS you are running? It may be that you are seeing some bug in an older version of CCS 3, it may be worth updating to the latest service release through update advisor if you have not already.

    I will also move this thread to the Code Composer forum, the folks who watch that forum tend to be more familiar with these kinds of tool related issues.

  • Mr THOMPSON,

    I thank you for this quick answer. So, my CCS version is V3.3.81.11.

    Could you tell me if it due to my CCS version ?

     

  • That version is a pretty recent one. It should be fine.

    Since CCS crashed, could you provide a crash dump file (see #5 of http://e2e.ti.com/support/development_tools/f/81/t/3131.aspx)?

    Thanks

    ki

  • Please find enclosed the crash dump file found in the "C:\CCStudio_v3.3\cc\bin\Logs" path (cf "ccapp20100128170932.rar").

    In waiting for your reply.

    Cordialement,

    Bubsy

     

    ccapp20100128170932.rar
  • Thank you for attaching the file. Unfortunately it just confirms what we already know (CCS crash is coming from CacheTune). Could you provide the executable (or a version of it that reproduces the problem)?

    fyi - CacheTune is not being supported anymore so it may be better to not use it going forward...

  • No problem, please find enclosed a pack including the executable file (Test_dsp.out).

    I'm waiting for your conclusion.

    Cordialement,

    Bubsy

     

     

    Custom.rar
  • I don't seem to get the crash. Your application loads fine and I can open CacheTune without a crash. However I don't see any collected data. I am not positive that CacheTune is supported with the C64x+ Cycle Accurate Simulator. Perhaps someone from the simulation team can comment.

  • Mr KI-SOO,

    You do not seem to get the crash. What is your environment used in your side ?

    Mine is :

    .  CCS : 3.3.81.11

    .  IDE : 5.98.0.393

    .  BIOS : 5.33.01

    .  Code Generation Tools : V6.1.5

    In order to produce this crash, I used the simulator identified above with the C64x+ DSP. Crash occurs even if the EVM is connected or not.

    Moreover, what do you mean by "I don't see any collected data" ?

    Could you describe me what are steps used for opening CacheTune without a crash ?

    D'avance merci

    Bubsy

     

     

  • I am using the latest SR (3.3.82.13). You can try updating to that version. However, CacheTune was not modified in quite some time so it is unlikely that upgrading will make a difference. You can try however.

    You mentioned using a simulator and then an EVM. Note that CacheTune is not supported on HW.

    I am simply following the steps in the CCS tutorial (load program, enable the activities to collect cache data in profile setup, then enable profiling and run to completion, then open the viewer).

    Note that CacheTune is no longer supported. It isn't really recommended that people use CacheTune.

    ki

  • Hi,

           C64x+ Cycle Accurate simulator simulate cache but they need to configured to match the target device in CCSv3.3 and that's the reason you are not getting any results. To configure the simulator check the link - http://www.tiexpressdsp.com/index.php/C64x%2B_Cycle_Accurate_Simulator

    About the Cache Tune, since it's no longer supported I recommend you to move to CCSv4.1 & simulator are free to use.  In CCSv4 it's easy to configure cache by selecting the target device for simulation at setup time.

    Link for profiler - http://www.tiexpressdsp.com/index.php/Profiler

    Link for cache opt - http://www.tiexpressdsp.com/index.php/Cache_Analysis_Using_Simulator

     

    Regards,

    Mani

  • Hello,

    I thank you for this precision. However, I saw this link before asking you (http://www.tiexpressdsp.com/index.php/C64x%2B_Cycle_Accurate_Simulator) and configured the file call "simc64plus.cfg" located in the driver folder.

    However, even if the modification are applied, CCS continue to crash when I launch CacheTune.  In order to be sure that the.cfg is well modified, I send you enclosed the file (see "simc64plus.cfg" in the pack "Custom-bis.rar". Maybe, I made wrong modifications (I just modified DMC, PMC, UMC & change "MEM_USAGE_LIMIT").

    Moreover, I send you a pack made this morning with this .cfg and it continue to crash (see "Custom-bis.rar").

    In waiting for your comment.

    D'avance merci

    Bubsy

     

    Custom-bis.rar
  • Hi Bubsy,

                The changes in the simc64plus.cfg file looks good and caches are getting enabled. (You can check that by clicking on tools->CacheTagViewerControl->CacheTagViewer)

    I ran you program and I am able to get data in cache tune without any crash. (My CCSv3.3 version - 3.3.82.9) May be you should try the version I am using.

    I have also doubt in the your steps to enable cache Tune. Please follow the step below and let me know.

    1. Bring -up CCS & load you program.

    2. Click Profile->Setup. Profile setup window will pop-up. In this window select "Collect Cache Information Over time"  & click enable profiling (clock symbol)

    3. Run the program to completion.

    4. Click Profile->Tuning->Cache Tune  (You should see some results)

    I have attached a snap-shot of the result I got.

    Regards,

    Mani

  • Hi Bubsy,

    >> In order to produce this crash, I used the simulator identified above with the C64x+ DSP. Crash occurs even if the EVM is connected or not.

    This makes me think that you have both the simulator and an emulator-to-EVM configuration in your CCS Setup, but you are not connecting the emulator, is that correct?

    If so, could you try removing the emulator from your CCS Setup, i.e., have only the simulator in the setup?

     

    Regards,

    Matti Rintamäki 

  • Hello everybody,

    First, thank you all you replies.

    1.(), how could I update my CCS version for going to the latest SR (3.3.82.13). When I used "Help - Update Advisor - Check for Updates", then TI informs me that "Your configuration is up-to-date." (see the Excel file enclosed - sheet "CCS update"). 

    2.(), I proceed exactly like you described me. And it is very frustrating to see that it's work on your side !!!. I give you enclosed the exact error message (see the Excel file enclosed - sheets "1st message", "2nd message" & "3rd message"). Hope it helps us.

    3.(), sorry for having troubling your mind in writting "In order to produce this crash, I used the simulator identified above with the C64x+ DSP. Crash occurs even if the EVM is connected or not.". Indeed, CacheTune is only "available" thanks to the simulator. the crash occurs even if setup is only with simulator. I send you a print screen of my CCS configuration (see the Excel file enclosed - sheet "CCS configuration"). 

    For your information, I tried with another computer equipped with the same environment (CCS version 3.3.81.11 and so on) and it crash. 

    So I am waiting for the answer concerning the update to latest SR (3.3.82.13) perhaps it due to it ?

    , the SR (3.3.82.13) is also the version you used for running CacheTune ?

    D'avance merci

    Bubsy

     

     

    Printed screen.xls
  • Bubsy,

             To your question my CCS Version - 3.3.82.13. About the error message, you got 3 different messages in your attempts and that's very strange & inconsistent. But the program run to completion in all the cases. so I am not sure what the source of the crash but I have seen the 1st message before and that error happens when your PC has very low memory & haven't restarted for a while.

    What is the configuration of your PC & OS?

    regards,

    Mani

     

  • Bubsy said:

    1.(), how could I update my CCS version for going to the latest SR (3.3.82.13). When I used "Help - Update Advisor - Check for Updates", then TI informs me that "Your configuration is up-to-date." (see the Excel file enclosed - sheet "CCS update"). 

    Here is the URL to all updates:

    https://www-a.ti.com/downloads/sds_support/CCSv3.3ServiceReleases.htm

     

  • Hello Mr KI-SOO,

    I thank you for this link. I found the service Release 12.1 (3.3.82.13). No problem.

    However, when I launch it, the setup abort (see enclosed file "New printed screen.xls").

    I do not understand because it is written in the update information that "A service release can be installed on any previous CCStudio v3.3 release."

    It seems that my environment it is seen for TI update tools as an up to date configuration whereas it is not the case, I run with the Release 3.3.81.11. 

    How could I proceed for solving this issue ?

    D'avance merci

    Bubsy

     

    New printed screen.xls
  • Message for . I run CCS on Windows XP Pro. Version 2002 Service Pack 3 with 2.93 Go RAM.

  • Bubsy,

    Are you using an eval version or DSK version? 3.3.82.11 is not a standard SR version I am familiar with. How did you get this version?

    ki

  • You speak about  3.3.82.11 and not 3.3.81.1, it was a mistake, didn't it ?

    The CCS version that I am using is a version supplied with the EVM board (see http://focus.ti.com/docs/toolsw/folders/print/tmdxevm6474.html).

    As we ordered in the middle of September 2009, Spectrum Digital supplied us the V3.3.81.11 instead of V4.

    So we can consider this version (V3.3.81.11) as a DSK version and not an evaluation version. What do you think ?

    And the question is how could I update the V3.3.81.11 to V3.3.82.13 ?

    D'avance merci

    Bubsy

  • Yes, I meant 81.11.

    You cannot update the DSK versions of CCS. The SR patches are for full CCS versions...

    ki

  • I installed DSK version 81.11 and was able to reproduce the crash as Bubsy described. It crashes with any simulator target (that supports CacheTune). Looks like  in later versions of CCS, the issue is resolved. Unfortunately you cannot update DSK versions of CCS. I'm not sure if it is worth it for you to get a full install of CCS just for CacheTune. It is no longer supported (it is not even in CCSv4) and we don't recommend people to use it anymore.

    ki

  • Mr KI-SOO,

    From a technical point of view, I am happy to know that you reproduced the bad behaviour.

    I not sure to understand the difference you made between a SR version and DSK version ? The only thing I understand is that my CCS can not be updated to the last version available 3.3.82.13. And also CacheTune will never work on my CCS. Regarding to my situation, it is not possible to have a version 3.3.82.13 of CCS ?

    Moreover, as we purchased during September 2009, Sprectrum Digital send us CCSv3 instead of CCSv4 which was available in this period. So my question is how could I do for going to CCSv4 ? 

    D'avance merci

    Bubsy

     

     

  • For your information, we ordered 2 TMS320C6474 Evaluation Modules for more than 4000 $. That's why, I continue to not understand why my CCS version can not be updated to 3.3.82.13.

    I convinced that TI is a serious company which take take of their customers. And you will find a solution to solve this issue for working with CacheTune in an updated environment.

    D.P

  • Hi Bubsy

    A DSK version is configured to support only the DSK target that CCS comes bundled with. A full CCS version will support any HW target with any emulator. Full CCS versions are also eligible for updates with Service Releases (SR). DSK versions are considered eval version and are not supported through updates. Hence DSK versions are much cheaper (A full CCS single license was $3000 by itself (w/no HW), though I think the price has been reduced significantly with the release of v4).

    I'd advise that you contact  the sales rep that you purchased the DSKs from and see how you can get an upgrade to full CCS versions. I do not have that information myself.

    If you are interested in CCSv4, you can download it and generate a FREE bundled license that allows you to use CCSv4 with your EVM, as long as you use the on-board USB emulation on the EVM (which I believe the C6474 has). As long as you use v4 with that HW configuration, there is no are limitation with the free bundled license. I would strongly encourage you to use v4. In your case, there is no extra cost moving to v4.

    Download CCSv4 from here:

    http://tiexpressdsp.com/index.php/Download_CCS

    For more information on CCSv4 (including tutorials, getting started guides, etc), see:

    http://tiexpressdsp.com/index.php/Category:Code_Composer_Studio_v4

    One last thing, I see that you are very interested in CacheTune. Again I recommend you do not use it. As mentioned, it is no longer supported (it is not in v4). Part of the reason that it is no longer supported is because many people did not fine it useful in more advanced cases. I would not worry about getting a full CCSv3.3 license solely for the purpose of using CacheTune.

    Thanks

    ki

  • Hello,

    To conclude concerning CacheTune, due to a Software bug, I understand that my CCS version will never work with it. Even if this application does not work in my environment, I thank you for your support.

    Moreover, we generate a bundle license that allows us to use CCSv4 with our EVM. It's works. However, we will contact our sales representative (Avnet) for having CCSv4.

    From now, we will try to use CCSv4. So, I propose to close this topic which was opened for CacheTune.

    If we have new questions, I will open a dedicated topic.

    Thanks for your help.

    Cordialement,

    D.P

     

     

     

     

     

     

     

  • I am trying to use the link above, but it seems broken ...