<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multidimensional DMA transfer in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167943#M1040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload the DAMA example again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Dec 2011 21:17:23 GMT</pubDate>
    <dc:creator>didib</dc:creator>
    <dc:date>2011-12-25T21:17:23Z</dc:date>
    <item>
      <title>Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167938#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to transfer data between a 2 dimensional buffer (read) and a 1 dimensional buffer (write) using the SmartDSP functions.&lt;/P&gt;&lt;P&gt;All the data looks like correct in the BD's but the transfer remains wrong the second buffer remains empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My function to initialize the DMA chain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;os_status init_2dim_dma_tranfer(uint8_t *source, uint8_t *dest){ os_status status; uint8_t *phys_addr; msc815x_dma_buffer_config_t msc815x_dma_buffer_config; msc815x_dma_attributes_config_t msc815x_dma_attributes_config; msc815x_dma_buffer_md_config_t msc815x_dma_buffer_md_config;     osDmaChainReset(dma_chain_handler);     msc815x_dma_buffer_md_config.high_dim[0].base_count = 0x00;    msc815x_dma_buffer_md_config.high_dim[0].count = 0x80;    msc815x_dma_buffer_md_config.high_dim[0].offset = 0x1C0;    msc815x_dma_buffer_md_config.high_dim[1].base_count = 0x00;    msc815x_dma_buffer_md_config.high_dim[1].offset = 0x00;    msc815x_dma_buffer_md_config.high_dim[1].count = 0x00;    msc815x_dma_buffer_md_config.high_dim[2].base_count = 0x00;    msc815x_dma_buffer_md_config.high_dim[2].offset = 0x00;    msc815x_dma_buffer_md_config.high_dim[2].count = 0x00;  msc815x_dma_buffer_md_config.buffer_dim = DMA_BUFF_DIM_2; msc815x_dma_buffer_md_config.cont_dim = DMA_BUFF_CONT_DIM_2; msc815x_dma_buffer_md_config.freeze_dim = DMA_BUFF_FRZ_DIM_2; msc815x_dma_buffer_md_config.interrupt_dim = DMA_BUFF_INT_DIM_2; msc815x_dma_buffer_md_config.mask_requests_dim = DMA_BUFF_MR_DIM_2; msc815x_dma_buffer_md_config.last = 0;      status = osMmuDataVirtToPhys(source, (void**)&amp;amp;phys_addr);    OS_ASSERT_COND(status == OS_SUCCESS);     msc815x_dma_buffer_config.address = (uint32_t) phys_addr; msc815x_dma_buffer_config.dma_port = DMA_PORT_A; msc815x_dma_buffer_config.interrupt = FALSE; msc815x_dma_buffer_config.size = 0x40; msc815x_dma_buffer_config.arch = NULL; msc815x_dma_buffer_config.md = msc815x_dma_buffer_md_config;  status = msc815xDmaChainBufferAdd(dma_chain_handler, &amp;amp;msc815x_dma_buffer_config, DMA_READ);    OS_ASSERT_COND(status == OS_SUCCESS);    msc815x_dma_buffer_md_config.high_dim[0].base_count = 0x00;    msc815x_dma_buffer_md_config.high_dim[0].offset = 0x00;    msc815x_dma_buffer_md_config.high_dim[1].base_count = 0x00;    msc815x_dma_buffer_md_config.high_dim[1].offset = 0x00;    msc815x_dma_buffer_md_config.high_dim[1].count = 0x00;    msc815x_dma_buffer_md_config.high_dim[2].base_count = 0x00; msc815x_dma_buffer_md_config.high_dim[2].offset = 0x00; msc815x_dma_buffer_md_config.high_dim[2].count = 0x00;    msc815x_dma_buffer_md_config.buffer_dim = DMA_BUFF_DIM_1; msc815x_dma_buffer_md_config.cont_dim = DMA_BUFF_CONT_DIM_1; msc815x_dma_buffer_md_config.freeze_dim = DMA_BUFF_FRZ_DIM_1; msc815x_dma_buffer_md_config.interrupt_dim = DMA_BUFF_INT_DIM_1; msc815x_dma_buffer_md_config.mask_requests_dim = DMA_BUFF_MR_DIM_1;        status = osMmuDataVirtToPhys(dest, (void**)&amp;amp;phys_addr);    OS_ASSERT_COND(status == OS_SUCCESS);     msc815x_dma_buffer_config.address = (uint32_t) phys_addr;    msc815x_dma_buffer_config.size = 0x2000;    msc815x_dma_buffer_config.interrupt = TRUE;    msc815x_dma_buffer_config.md = msc815x_dma_buffer_md_config;     status = msc815xDmaChainBufferAdd(dma_chain_handler, &amp;amp;msc815x_dma_buffer_config, DMA_WRITE);    OS_ASSERT_COND(status == OS_SUCCESS);        /* Bind the chain */    status = osDmaChannelBind(dma_channel_handler, dma_chain_handler);    OS_ASSERT_COND(status == OS_SUCCESS);    #ifdef ENABLE_CLASS_PROFILING   {       msc815x_class_profiling_param_t msc815x_class_profiling_param;       msc815x_class_profiling_param = CLASS_PROFILE_INIT;       msc815x_class_profiling_param.profile_port = DMA_PORT_TO_PROFILE;       msc815x_class_profiling_param.profiling_type = INITATOR_BW;       status = msc815xConfigureClassProfiling(&amp;amp;msc815x_class_profiling_param);       OS_ASSERT_COND(status == OS_SUCCESS);   }#endif      return status;}&lt;/PRE&gt;&lt;P&gt;I use the parameters find inr the MSC8156 RM for the 2 dimensional buffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an exemple show how using the DMA with multidimesional buffers ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:15:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167938#M1035</guid>
      <dc:creator>Jim95</dc:creator>
      <dc:date>2020-10-29T09:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167939#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim95,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, we do have an example showing multidimensional DMA in SDOS (see attached zip file which includes a few PPT slides regarding this).&lt;/P&gt;&lt;P&gt;This example project is for 8157, but the DMA is the same as in MSC8156, so the example still applies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know when you've downloaded the attachment so I can remove it from the post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(Attachment removed.)&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 22:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167939#M1036</guid>
      <dc:creator>AndrewinApps</dc:creator>
      <dc:date>2011-09-20T22:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167940#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Andrew I have downloaded it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 13:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167940#M1037</guid>
      <dc:creator>Jim95</dc:creator>
      <dc:date>2011-09-21T13:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167941#M1038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I have a similar problem with dma transfer. I want to transfer a 2 dimentional array to a 2 dimentional array. Both the arrays are 2 Dimentional. Please let me know how a 2 dimentional transfer can be done using DMA.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Please let me know whether skipping of some data in each row of source array of a 2 dimentional buffer can be tranfered to destination which may be 1 or 2 dimentional.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Please let me know where i can find an example for 2 dimentional dma transfer.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Bharath M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 18:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167941#M1038</guid>
      <dc:creator>MBharath</dc:creator>
      <dc:date>2011-10-12T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167942#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code example I give in my fisrt message is correct but I had a problem with the cache.&lt;/P&gt;&lt;P&gt;Maybe you just have to flush the cache to complete the transfer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167942#M1039</guid>
      <dc:creator>Jim95</dc:creator>
      <dc:date>2011-10-13T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional DMA transfer</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167943#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload the DAMA example again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2011 21:17:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Multidimensional-DMA-transfer/m-p/167943#M1040</guid>
      <dc:creator>didib</dc:creator>
      <dc:date>2011-12-25T21:17:23Z</dc:date>
    </item>
  </channel>
</rss>

