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.

CCS/PROCESSOR-SDK-DRA8X-TDA4X: CacheP_wbInv

Part Number: PROCESSOR-SDK-DRA8X-TDA4X

Tool/software: Code Composer Studio

Hi :

          Is    there a waiting mechanism for CacheP_wbInv   function? 

          After calling this function, it  need to wait for the cache operation finished  before executing the following program?

Thanks

Shuai

  • No Need to wait. This call will return only after it finishes its operation.

    Rgds,

    Brijesh

  • Hi:Brijesh

    we use psdk_rtos_auto_j7_06_01_01_12we've managed to run six CNN on the C66

    but two of CNN's final output is not correct, after checking, we found that it was caused by inconsistency between source data and result data after using appudmacopy2d to copy data.

    we  use appudmacopy2d to copy data from DDR to L2RAM at each layer of CNN,

    Kenel function reads data from l2ram and stores the output result in l2ram, and then uses appudmacopy2d to copy the output result from l2ram to DDR.

     

    DDR_input  appUdmaCopy2D   L2RAM_input  kenel_fuction  L2RAM_output appUdmaCopy2D   DDR_output  CacheP_wbDDR_output

     

    we compare MD5 of source data and target data of each appudmacopy2d, DDR input MD5 and l2ram input MD5, l2ram output MD5 and DDR output MD5.

    we find that the l2ram output MD5 and DDR output MD5 of some layers are inconsistent

     how   can   we    solve   it ?

    Thanks!

    Shuai

  • Hello shuai,

    But if you are using DMA, then there is no need to use cache API, correct? 

    Does UDMA finishes without any error? Can you check?

    Rgds,

    Brijesh