This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Will data be stored to cache first when I send a large amount of data continually(exceed the size of cache)?

Dear friend

   Cortex-M7 has cache. After enable data cache, will data be stored to cache first when I send a large amount of data continually?

   The size of data exceed the space of cache.

   Thanks!

Amanda

  • Hi Amanda,

    what is you cache policy?

    WriteBack or WriteThrough?

    Write Allocate or Read Allocate?

    The behavior will depend on them.

    Best regards,

    Yasuhiko Koumoto.

  • Hi,

    Are you possibly asking about the Dynamic read allocate mode?

    Best regards,

    Yasuhiko Koumoto.

  • Hi Yasuhiko

          I mean if I  send a lot of data continually, the cache(now I use STM23F7, it has only 4KB data cache) will be full filled soon, then it need to write back those data and store the new data…write back old data, store the new data……

          Do we have a mechanism to deal with this situation? Even if I don’t configure those memory address to WriteThrough attribute, The core will detect this situation and handle it in a different way. Or I can do something when write

    code to tell the core this is a special case, it should handle it as WriteThrough? Thanks a lot!

    Best Regards

    Amanda SHEN

  • Hi Amanda,


    regarding continuous write data, the dynamic read allocation mechanism will invoke and then the write back cache will turn into the read allocate mode.
    This means that as long as missing the cache, all the write data will bypass the cache.
    It would be difficult to explain all about the cache, please let us know separatedly your questions.

    That is, no refill or no writeback will occur and the cache will act as the write through mode.

    I would like to reply them as much as possible.

    HTH,

    Yasuhiko Koumoto.