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.

Unicache not supported on device (omap5432)

Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm using OMAP5432 board for my project. I'm facing an issue that I'm unable to add cache memory in my config file. When I try to add I'll get an error  message "Unicahe not supported on device". I've seen a similar thread in forum. The solution given was to add device table entry for 5430 in  hal/unicahe/cache.xs ,but that didn't solve my problem. I need to enable cache as it seems to have a huge performance hit.

Thanks in advance

Thushara.

  • Hello,

    Have you corrected hal/ammu/AMMU.xs in a similar manner?

    Best Regards,

    Yordan

  • Hi Yordan,

    Yes I did changes in the proper cache.xs and ammu.xs only. Then also I was getting the same error.

    Regards

    Thushara.

  • Yordan,

    Can you suggest any other method for enabling cache in omap5432 using the cfg_script file we add in the RTSC project.

    Regards

    Thushara.

  • Hi,

    Could you please provide some log of the errors you are getting?

    Also I am attaching a the cache.xs (from GLSDK: 3683.Cache.cfg) file, which contains all devices listed in the device table, so you can compare with your configuration. 

    You can check the all the configuration in GLSDK_6_02 sources in GLSDK/component-sources/bios_6_35_02_45/packages/ti/sysbios/hal, which has all needed configurations for enabling cache on OMAP5432.

    Since you are using TI-RTOS you can also post in the TI-RTOS dedicated forum: http://e2e.ti.com/support/embedded/bios/f/355.aspx, as well.

    Best Regards,

    Yordan

  • Hi Yordan,

    I've compared the Cache.cfg you have send me with the cache configuration file of mine. Both are identical only.

    The  ccs version I'm using is 5.5.0.00077.

    The issue I'm facing is that if I have a cfg_script like the one shown below, the program is loaded properly and it hits the main function also.

    var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
    var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');

    Cache.configureCache = true;

    Cache.enableCache = false;
    Timer.checkFrequency = false;

    But If I've my cache enabled  as in cfg_script shown below.

    var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
    var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');

    Cache.configureCache = true;

    Cache.enableCache = true;
    Timer.checkFrequency = false;

    The program loaded gets stuck in some function;it never hits the main,though it shows running state. 

    Further debugging revealed the following :

    1) Its starts properly at c_init and goes to memory section corresponding to ti_sysbios_hal_ammu_AMMU_init__I.

    2) Using "step into" key it came till address 0x80001844 (ref figure 1),

                                                     FIG:1

    3)From the last position, address  handles goes to location 0x80004f50 (ref fig 2).

                                                      FIG:2

    4)If we try to step into further we will get a window like the one below (ref fig 3) and the thread goes into running state.

                                                        FIG:3

    If we try to pause it will return the following error message in console:

    C646X_0: Trouble Removing Breakpoint with the Action "Continue or Finish Stepping" at 0x8000f450: (Error -2172 @ 0x8000F450) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.232.0)

    In the Disassembly window it shows some random memory location.

    Regards,

    Thushara.

  • Hi Yordan,

    We got solution for the problem. We were enabling cache without configuring AMMU unit in cfg_script. So the program was not loaded properly.

    I got the solution from RTOS forum. 

    http://e2e.ti.com/support/embedded/bios/f/355/p/307135/1069602.aspx#1069602

    Thanks for your support

    Regards

    Thushara.

  • Hello Thushara,

    I am glad to hear you resolved your issue.

    Also thanks for sharing your solution, this will help other users facing similar problems. 

    Best Regards,

    Yordan