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.

DIsable L2 Cache

Hi folks,


In a C64x device if I disable the entire L2 as cache  how the BCACHE_XX APIs are affected? I mean waht will be the effect of calling BCACHE_inv() on a L2 block??

 

Best regards,

Armando.

 

 

  • Armando,

    I assume you mean a C64x+ DSP within a DM64x DaVinci SoC, since this is the DM64x DaVinci forum, right? The C64x DSP core in our older devices behaves differently, although maybe not for this particular question.

    If you set the L2 cache size to 0KB, then there will be no memory set aside for use as cache. A call to a BCACHE_XX API to manipulate the contents of L2 cache will be a waste of DSP processing cycles but no damage will occur. The APIs probably do not test for this condition, so they will go ahead and write to the cache controller registers which will start internal state machines which may take some cycles to complete.

    Since there will be no damage, will this be sufficient for your purposes?

    Please test it, and also check the errata document for your device just in case there is something of concern in there for this condition.

    Regards,
    RandyP

     

    If this answers your question, please click the  Verify Answer  button below. If not, please reply back with more information.