<?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>MPC5xxxのトピックRe: MPC5746R eDAM transfer Source Bus Error</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745360#M10331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, apparently you have incorrectly defined source address. Try to define it the same way as destination (re-typed pointer). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 20:15:29 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2018-01-22T20:15:29Z</dc:date>
    <item>
      <title>MPC5746R eDAM transfer Source Bus Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745359#M10330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to setup an eDMA transfer of the SARADC conversion results to a ram buffer.&amp;nbsp; The transfer seems to work just once and the I get a SBE error flag in the ES register.&amp;nbsp; Any ideas on what I might have wrong here?&amp;nbsp; See setup code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void DMA_0_Init(void)&lt;BR /&gt;{&lt;BR /&gt; // DMAMUX_1 configuration for ADC_0 trigger&lt;BR /&gt; DMAMUX_0.CHCFG[0].B.ENBL = 1;&lt;BR /&gt; DMAMUX_0.CHCFG[0].B.SOURCE = 0x1;&lt;BR /&gt; DMAMUX_0.CHCFG[0].B.TRIG = 0;&lt;/P&gt;&lt;P&gt;// DMA config&lt;BR /&gt; DMA_0.ERQL.B.ERQ0 = 0x1;&lt;BR /&gt; DMA_0.CR.B.EMLM = 0x0;&lt;/P&gt;&lt;P&gt;//TCD config for channel[16]&lt;/P&gt;&lt;P&gt;// TCD[16] Word 0 config&lt;BR /&gt; DMA_0.TCD[0].WORD_0.B.SADDR = SARADC0_BASE + 0x102; //Source Address ADC_0 this is the CDR Register BASE + Offset of 0x100&lt;/P&gt;&lt;P&gt;// TCD[16] Word 1 config SMOD(0) | SSIZE(32-bit) | DMOD(0) | DSIZE(32-bit)&lt;BR /&gt; DMA_0.TCD[0].WORD_1.B.SMOD = 0x0;&lt;BR /&gt; DMA_0.TCD[0].WORD_1.B.SSIZE = 0x1;&lt;BR /&gt; DMA_0.TCD[0].WORD_1.B.SOFF = 0x4;&lt;BR /&gt; DMA_0.TCD[0].WORD_1.B.DMOD = 0x0;&lt;BR /&gt; DMA_0.TCD[0].WORD_1.B.DSIZE = 0x1;&lt;/P&gt;&lt;P&gt;// TCD[16] Word 2 config NBYTES - Minor Byte Transfer Count&lt;BR /&gt; // Number of bytes to be transferred in each service request of the channel&lt;BR /&gt; DMA_0.TCD[0].WORD_2.NBYTES.R = 0x2;&lt;BR /&gt; /* TCD[16] Word 3 config SLAST - TCD Last Source Address Adjustment */&lt;BR /&gt; /* Set to 0 to reset to SARADC CDATA[0] */&lt;BR /&gt; DMA_0.TCD[0].WORD_3.B.SLAST = 0x0;&lt;/P&gt;&lt;P&gt;// TCD[16] Word 4 config DADDR - TCD Destination Address&lt;BR /&gt; DMA_0.TCD[0].WORD_4.B.DADDR = (uint32_t)&amp;amp;g_ADC_0_Result; /* Destination Address uint16_t 32 Element array */&lt;/P&gt;&lt;P&gt;// TCD[16] Word 5 config CITER - TCD Current Minor Loop Link, Major Loop Count&lt;BR /&gt; // ELINK | CITER&lt;BR /&gt; DMA_0.TCD[0].WORD_5.B.CITER = 0x20; //Destination Address&lt;BR /&gt; DMA_0.TCD[0].WORD_5.B.CITER_E_LINK = 0x0;&lt;BR /&gt; DMA_0.TCD[0].WORD_5.B.DOFF = 0x2;&lt;/P&gt;&lt;P&gt;// TCD[16] Word 6 config DLAST_SGA - TCD Last Destination Address Adjustment/Scatter Gather Address&lt;BR /&gt; DMA_0.TCD[0].WORD_6.B.DLAST_SGA = 0x0; // Destination last address adjustment&lt;/P&gt;&lt;P&gt;// TCD[0] Word 7 config BITER - TCD Beginning Minor Loop Link, Major Loop Count&lt;BR /&gt; // ELINK | BITER&lt;BR /&gt; DMA_0.TCD[0].WORD_7.B.BITER_E_LINK = 0x0;&lt;BR /&gt; DMA_0.TCD[0].WORD_7.B.BITER = 0x20; // Destination last address adjustment&lt;/P&gt;&lt;P&gt;}//DMA_0_Init&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 12:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745359#M10330</guid>
      <dc:creator>ronlewis</dc:creator>
      <dc:date>2018-01-22T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5746R eDAM transfer Source Bus Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745360#M10331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, apparently you have incorrectly defined source address. Try to define it the same way as destination (re-typed pointer). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745360#M10331</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2018-01-22T20:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5746R eDAM transfer Source Bus Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745361#M10332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand what you mean here.&amp;nbsp; The source is a constant register address.&amp;nbsp; Also all of the example that I came across for eDMA had the source address defined in a similar manner (DEFINED constant).&amp;nbsp; I would also not expect the transfer to work at all if this was the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI:I started with this example:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-334154"&gt;https://community.nxp.com/docs/DOC-334154&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 20:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745361#M10332</guid>
      <dc:creator>ronlewis</dc:creator>
      <dc:date>2018-01-22T20:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5746R eDAM transfer Source Bus Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745362#M10333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but you have obtained source bus error. Have you checked real TCD content (by debugger) whether it contains valid address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745362#M10333</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2018-01-23T07:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5746R eDAM transfer Source Bus Error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745363#M10334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the SADDR and DADDR are not resetting as I would like.&amp;nbsp; How do you use SLAST&amp;nbsp; to "restore" source address?&amp;nbsp; Or is ti required to setup an ISR to reset the source and destination address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 14:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5746R-eDAM-transfer-Source-Bus-Error/m-p/745363#M10334</guid>
      <dc:creator>ronlewis</dc:creator>
      <dc:date>2018-01-23T14:45:48Z</dc:date>
    </item>
  </channel>
</rss>

