<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックMCF5208 eDMA to UART bus error</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134131#M1393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using CW 6.3, writing code for an MCF5208.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to drive UART 0 with the eDMA controller. I have set up a TCD for channel 2 (which is the transmit channel for UART 0) but a few microseconds after enabling the DMA requests, I get the DBE error bit set in EDMA_ES, saying that there was a bus error on the destination write for channel 2. This is rather mysterious as I can then read back from the TCD and confirm that DADDR is set to 0xFC06000C (the UART 0 TBD) and that ATTR is set to 0, specifying an 8-bit wide source and destination transfer size. Is there something else I need to do to persuade the eDMA controller to write to the UART? My own code can write to the UART 0 TBD without difficulty in the same context...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 11:08:31 GMT</pubDate>
    <dc:creator>nspon</dc:creator>
    <dc:date>2007-05-18T11:08:31Z</dc:date>
    <item>
      <title>MCF5208 eDMA to UART bus error</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134131#M1393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using CW 6.3, writing code for an MCF5208.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to drive UART 0 with the eDMA controller. I have set up a TCD for channel 2 (which is the transmit channel for UART 0) but a few microseconds after enabling the DMA requests, I get the DBE error bit set in EDMA_ES, saying that there was a bus error on the destination write for channel 2. This is rather mysterious as I can then read back from the TCD and confirm that DADDR is set to 0xFC06000C (the UART 0 TBD) and that ATTR is set to 0, specifying an 8-bit wide source and destination transfer size. Is there something else I need to do to persuade the eDMA controller to write to the UART? My own code can write to the UART 0 TBD without difficulty in the same context...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nigel&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 11:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134131#M1393</guid>
      <dc:creator>nspon</dc:creator>
      <dc:date>2007-05-18T11:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5208 eDMA to UART bus error</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134132#M1394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello Nigel&lt;BR /&gt;&lt;BR /&gt;The following are only guesses, but they might help if you're running out of ideas:&lt;BR /&gt;&lt;BR /&gt;(1) The Master Privilege Register (MPR) and Peripheral Access Control Registers (PACRn) can be configured to enable/disable reads and writes from various bus masters (e.g. DMA) to various periherals (e.g. UART).&lt;BR /&gt;&lt;BR /&gt;Maybe these are set in such a way that they are causing the problem?&lt;BR /&gt;&lt;BR /&gt;The MPR and PACRn are part of the System Control Module.&lt;BR /&gt;&lt;BR /&gt;(2) In the DMA TCD, have you got the DOFF field in TCD word 5 set to a non-zero value? If so, the destination address will increment after the first transfer, so the second transfer might be to a 'rogue' address.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simon&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 15:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134132#M1394</guid>
      <dc:creator>SimonMarsden_de</dc:creator>
      <dc:date>2007-05-18T15:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5208 eDMA to UART bus error</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134133#M1395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The first of your suggestions was the problem; it hadn't occurred to me that the eDMA would default to untrusted. It would be nice if Freescale put a note to this effect in the eDMA chapter, as the SCM chapter is not the first place one would look for problems of this sort...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nigel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 05:46:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5208-eDMA-to-UART-bus-error/m-p/134133#M1395</guid>
      <dc:creator>nspon</dc:creator>
      <dc:date>2007-05-21T05:46:19Z</dc:date>
    </item>
  </channel>
</rss>

