Forums - Internal TCM DSP memory

2 posts / 0 new
Last post
Internal TCM DSP memory
pyosifov
Join Date: 6 Aug 13
Posts: 19
Posted: Wed, 2014-02-19 04:44

Is there any method to use internal DSP memory (TCM) instead of ION buffers for better performance? For example, may be with __attribute__ directive of GCC (works only in standalone apps, right?) or with special API?

  • Up0
  • Down0
pyosifov
Join Date: 6 Aug 13
Posts: 19
Posted: Wed, 2014-02-26 08:47

I found only way to use QurtOS API for this, something like:

    if (QURT_EOK != qurt_mem_pool_attach("XXXX", &mpool)) {
        return (0);
    }

    qurt_mem_region_attr_init(&mattr);
    qurt_mem_region_attr_set_physaddr(&mattr, 0xADDR);
    if (QURT_EOK != (qurt_mem_region_create(
                    &mreg,
                    (qurt_size_t)0xSIZE,
                    mpool,
                    &mattr))) {
        return (0);
    }
in DSP side function, called via FastRPC. But I dont know what should be "XXXX", 0xADDR, 0xSIZE ! And is this valide in non-standalone application...

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.