<?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 MCF5213 and BDM in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-and-BDM/m-p/130819#M769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;This message contains an entire topic ported&amp;nbsp;from the WildRice - Coldfire forum.&amp;nbsp; Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages.&amp;nbsp; The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions.&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Freescale assumes no responsibility whatsoever with respect to Posted Material.&amp;nbsp; For additional information, please see the &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fabstract%2Fhelp_page%2FTERMSOFUSE.html" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #000000;"&gt;Terms of Use - Message Boards and Community Forums&lt;/SPAN&gt;&lt;/A&gt;.&amp;nbsp; Thank You and Enjoy the Forum!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 18, 2006, 4:41 PM&lt;/DIV&gt;&lt;DIV&gt;Post #1 of 4 (27 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;[ColdFire] MCF5213 and BDM&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;This feels like a dumb question, but here goes anyway:&lt;/DIV&gt;&lt;DIV&gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;with the 5307 and 5407.&lt;/DIV&gt;&lt;DIV&gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;an issue on this project.&lt;/DIV&gt;&lt;DIV&gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;/DIV&gt;&lt;DIV&gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;I would be grateful.&lt;BR /&gt;--&lt;BR /&gt;Jonathan Griffitts&lt;BR /&gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;303 442-0556&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 19, 2006, 2:22 PM&lt;/DIV&gt;&lt;DIV&gt;Post #2 of 4 (27 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Hi Jonathan,&lt;/DIV&gt;&lt;DIV&gt;I recently did a PCB design that utilized the Mod5213 microcontroller module from NetBurner, which is based on the MCF5213. Needing a BDM solution, I purchased a USB BDM interface from P&amp;amp;E Microcomputer Systems. Like you, I was a bit unsure about how to hook it up, as several of the signals that are present in the standard 26-pin Berg connector used by BDM interfaces are absent from the 5213, at least in some packages.&lt;/DIV&gt;&lt;DIV&gt;It turns out that only a few of the signals are absolutely necessary for a working BDM solution. While I can't claim to have penetrated all the details of BDM, this is my take on the situation:&lt;BR /&gt;-The DSCLK, DSI and DSO signals are absolutely vital.&lt;BR /&gt;- The PST0 ... PST3 signals encode the core status. However, on some 5213 packages there aren't sufficient pins to bring out all these signals, and instead a signal ALLPST (logical AND of PST0 ... PST3) is provided. This at least allows a debugger to know whether the core is running or halted, which is all that's necessary for basic functionality.&lt;BR /&gt;- The BKPT signal is perhaps not absolutely necessary, but it's hard to see how any worthwhile debugging solution could do without it (it allows the core to be halted manually, typically as a result of the user clicking the "stop" or "halt" button in his debugger).&lt;BR /&gt;- Similarly, the RESET signal may not be absolutely necessary, but of course it would be very awkward if the debugger was unaware of a target reset.&lt;BR /&gt;- The DDATA signals provide additional information that can be used by a debugger to implement enhanced functionality, but they aren't essential. For example, availablity of all 4 PST and all 4 DDATA signals allows a real-time trace function to be implemented.&lt;BR /&gt;- The TEA (pin 26 in the Berg connector) signal is only necessary if you need to monitor external bus activity through your debugger.&lt;BR /&gt;- Not quite sure what the PSTCLK signal does, but I don't think it's essential for basic BDM functionality.&lt;/DIV&gt;&lt;DIV&gt;For what it's worth, here is how I wired my connection between the Mod5213 and the P&amp;amp;E interface's Berg connector:&lt;/DIV&gt;&lt;DIV&gt;5213 P&amp;amp;E&lt;BR /&gt;---- ---&lt;BR /&gt;BKPT BKPT (pin 2)&lt;BR /&gt;DSCLK DSCLK (4)&lt;BR /&gt;RSTI RESET (7)&lt;BR /&gt;DSI DSI (8)&lt;BR /&gt;DSO DSO (10)&lt;BR /&gt;ALLPST PST0 (15), PST1 (14), PST2 (13), PST3 (12)&lt;BR /&gt;PSTCLK CLK (24)&lt;/DIV&gt;&lt;DIV&gt;Plus, of course, GND and Vcc. Everything else I left open.&lt;/DIV&gt;&lt;DIV&gt;This works quite well with the P&amp;amp;E interface and P&amp;amp;E's debugger. I haven't tried it with any other debugging software.&lt;/DIV&gt;&lt;DIV&gt;Regarding the EZPort, I haven't delved into it. In my case, a Flash programming tool was supplied as part of the P&amp;amp;E package, and it works just fine using the same interconnect that also serves for BDM. For field updates, I have implemented my own software functions which rely on asynchronous serial communication (to receive new data from outside) and the functionality supplied by the CFM module (chapter 15 in the manual) for erasing and programming the Flash. I'm not sure in what situations you'd prefer to use the EZPort.&lt;/DIV&gt;&lt;DIV&gt;HTH,&lt;BR /&gt;Harald Hallen&lt;/DIV&gt;&lt;DIV&gt;*********** REPLY SEPARATOR ***********&lt;/DIV&gt;&lt;DIV&gt;On 2006-02-18 at 17:41 Jonathan Griffitts wrote:&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;This feels like a dumb question, but here goes anyway:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;&amp;gt;with the 5307 and 5407.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;&amp;gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;&amp;gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;&amp;gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;&amp;gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;&amp;gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;&amp;gt;an issue on this project.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;&amp;gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;&amp;gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;&amp;gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;&amp;gt;I would be grateful.&lt;BR /&gt;&amp;gt;--&lt;BR /&gt;&amp;gt; Jonathan Griffitts&lt;BR /&gt;&amp;gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;&amp;gt;303 442-0556&lt;BR /&gt;&amp;gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 20, 2006, 12:39 AM&lt;/DIV&gt;&lt;DIV&gt;Post #3 of 4 (26 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;As far as I understand it (and hopefully the more experianced folk will&lt;BR /&gt;correct me if I'm wrong), the explaination below is almost correct. The&lt;BR /&gt;signal on pin 26 should be TEA, not TA - i.e., Transaction Error Acknowledge&lt;BR /&gt;rather than Transaction Acknowledge, and is an input to the ColdFire, not an&lt;BR /&gt;output to be monitored. Bringing the pin low during a bus cycle cuts the&lt;BR /&gt;cycle off short and causes an exception. It can be used if the ColdFire is&lt;BR /&gt;stuck accessing non-existant addresses. It's not an essential signal, so if&lt;BR /&gt;you don't have it, don't worry.&lt;/DIV&gt;&lt;DIV&gt;mvh.,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;----- Original Message -----&lt;BR /&gt;From: "Harald Hallen"&lt;BR /&gt;Sent: Sunday, February 19, 2006 11:22 PM&lt;BR /&gt;Subject: Re: [ColdFire] MCF5213 and BDM&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt; Hi Jonathan,&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I recently did a PCB design that utilized the Mod5213 microcontroller&lt;BR /&gt;module from NetBurner, which is based on the MCF5213. Needing a BDM&lt;BR /&gt;solution, I purchased a USB BDM interface from P&amp;amp;E Microcomputer Systems.&lt;BR /&gt;Like you, I was a bit unsure about how to hook it up, as several of the&lt;BR /&gt;signals that are present in the standard 26-pin Berg connector used by BDM&lt;BR /&gt;interfaces are absent from the 5213, at least in some packages.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; It turns out that only a few of the signals are absolutely necessary for a&lt;BR /&gt;working BDM solution. While I can't claim to have penetrated all the details&lt;BR /&gt;of BDM, this is my take on the situation:&lt;BR /&gt;&amp;gt; -The DSCLK, DSI and DSO signals are absolutely vital.&lt;BR /&gt;&amp;gt; - The PST0 ... PST3 signals encode the core status. However, on some 5213&lt;BR /&gt;packages there aren't sufficient pins to bring out all these signals, and&lt;BR /&gt;instead a signal ALLPST (logical AND of PST0 ... PST3) is provided. This at&lt;BR /&gt;least allows a debugger to know whether the core is running or halted, which&lt;BR /&gt;is all that's necessary for basic functionality.&lt;BR /&gt;&amp;gt; - The BKPT signal is perhaps not absolutely necessary, but it's hard to&lt;BR /&gt;see how any worthwhile debugging solution could do without it (it allows the&lt;BR /&gt;core to be halted manually, typically as a result of the user clicking the&lt;BR /&gt;"stop" or "halt" button in his debugger).&lt;BR /&gt;&amp;gt; - Similarly, the RESET signal may not be absolutely necessary, but of&lt;BR /&gt;course it would be very awkward if the debugger was unaware of a target&lt;BR /&gt;reset.&lt;BR /&gt;&amp;gt; - The DDATA signals provide additional information that can be used by a&lt;BR /&gt;debugger to implement enhanced functionality, but they aren't essential. For&lt;BR /&gt;example, availablity of all 4 PST and all 4 DDATA signals allows a real-time&lt;BR /&gt;trace function to be implemented.&lt;BR /&gt;&amp;gt; - The TEA (pin 26 in the Berg connector) signal is only necessary if you&lt;BR /&gt;need to monitor external bus activity through your debugger.&lt;BR /&gt;&amp;gt; - Not quite sure what the PSTCLK signal does, but I don't think it's&lt;BR /&gt;essential for basic BDM functionality.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; For what it's worth, here is how I wired my connection between the Mod5213&lt;BR /&gt;and the P&amp;amp;E interface's Berg connector:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 5213 P&amp;amp;E&lt;BR /&gt;&amp;gt; ---- ---&lt;BR /&gt;&amp;gt; BKPT BKPT (pin 2)&lt;BR /&gt;&amp;gt; DSCLK DSCLK (4)&lt;BR /&gt;&amp;gt; RSTI RESET (7)&lt;BR /&gt;&amp;gt; DSI DSI (8)&lt;BR /&gt;&amp;gt; DSO DSO (10)&lt;BR /&gt;&amp;gt; ALLPST PST0 (15), PST1 (14), PST2 (13), PST3 (12)&lt;BR /&gt;&amp;gt; PSTCLK CLK (24)&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Plus, of course, GND and Vcc. Everything else I left open.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; This works quite well with the P&amp;amp;E interface and P&amp;amp;E's debugger. I haven't&lt;BR /&gt;tried it with any other debugging software.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Regarding the EZPort, I haven't delved into it. In my case, a Flash&lt;BR /&gt;programming tool was supplied as part of the P&amp;amp;E package, and it works just&lt;BR /&gt;fine using the same interconnect that also serves for BDM. For field&lt;BR /&gt;updates, I have implemented my own software functions which rely on&lt;BR /&gt;asynchronous serial communication (to receive new data from outside) and the&lt;BR /&gt;functionality supplied by the CFM module (chapter 15 in the manual) for&lt;BR /&gt;erasing and programming the Flash. I'm not sure in what situations you'd&lt;BR /&gt;prefer to use the EZPort.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; HTH,&lt;BR /&gt;&amp;gt; Harald Hallen&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; *********** REPLY SEPARATOR ***********&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; On 2006-02-18 at 17:41 Jonathan Griffitts wrote:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;This feels like a dumb question, but here goes anyway:&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;&amp;gt; &amp;gt;with the 5307 and 5407.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;&amp;gt; &amp;gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;&amp;gt; &amp;gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;&amp;gt; &amp;gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;&amp;gt; &amp;gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;&amp;gt; &amp;gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;&amp;gt; &amp;gt;an issue on this project.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;&amp;gt; &amp;gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;&amp;gt; &amp;gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;&amp;gt; &amp;gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;&amp;gt; &amp;gt;I would be grateful.&lt;BR /&gt;&amp;gt; &amp;gt;--&lt;BR /&gt;&amp;gt; &amp;gt; Jonathan Griffitts&lt;BR /&gt;&amp;gt; &amp;gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;&amp;gt; &amp;gt;303 442-0556&lt;BR /&gt;&amp;gt; &amp;gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 20, 2006, 3:43 PM&lt;/DIV&gt;&lt;DIV&gt;Post #4 of 4 (26 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;David Brown wrote:&lt;BR /&gt;&amp;gt; As far as I understand it (and hopefully the more experianced folk will&lt;BR /&gt;&amp;gt; correct me if I'm wrong), the explaination below is almost correct. The&lt;BR /&gt;&amp;gt; signal on pin 26 should be TEA, not TA - i.e., Transaction Error Acknowledge&lt;BR /&gt;&amp;gt; rather than Transaction Acknowledge, and is an input to the ColdFire, not an&lt;BR /&gt;&amp;gt; output to be monitored.&lt;/DIV&gt;&lt;DIV&gt;Correct.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; Bringing the pin low during a bus cycle cuts the&lt;BR /&gt;&amp;gt; cycle off short and causes an exception. It can be used if the ColdFire is&lt;BR /&gt;&amp;gt; stuck accessing non-existant addresses.&lt;/DIV&gt;&lt;DIV&gt;You would think this would be case, how-ever on V2 core devices I have&lt;BR /&gt;tested this is not the case. If a BDM cycle occurs to an address that&lt;BR /&gt;will not generate a TA signal the core will lock up. The v4e cores with&lt;BR /&gt;the latest version of the debug module have a command that can be used&lt;BR /&gt;to recover from this situation. I have also tried the bus hardware&lt;BR /&gt;timer, break signal etc. Reset worked but had other side effects. &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;If my testing was wrong I would be happy to hear of a solution or better&lt;BR /&gt;see a patch.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; It's not an essential signal, so if you don't have it, don't worry.&lt;/DIV&gt;&lt;DIV&gt;The GDB BDM driver does assert the signal if no response is detected,&lt;BR /&gt;but it does not help as stated above.&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;BR /&gt;Chris&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;04-01-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:30 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;04-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:27 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Apr 2006 05:57:41 GMT</pubDate>
    <dc:creator>Dietrich</dc:creator>
    <dc:date>2006-04-01T05:57:41Z</dc:date>
    <item>
      <title>MCF5213 and BDM</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-and-BDM/m-p/130819#M769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;This message contains an entire topic ported&amp;nbsp;from the WildRice - Coldfire forum.&amp;nbsp; Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages.&amp;nbsp; The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions.&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Freescale assumes no responsibility whatsoever with respect to Posted Material.&amp;nbsp; For additional information, please see the &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fabstract%2Fhelp_page%2FTERMSOFUSE.html" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #000000;"&gt;Terms of Use - Message Boards and Community Forums&lt;/SPAN&gt;&lt;/A&gt;.&amp;nbsp; Thank You and Enjoy the Forum!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;HR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 18, 2006, 4:41 PM&lt;/DIV&gt;&lt;DIV&gt;Post #1 of 4 (27 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;[ColdFire] MCF5213 and BDM&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;This feels like a dumb question, but here goes anyway:&lt;/DIV&gt;&lt;DIV&gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;with the 5307 and 5407.&lt;/DIV&gt;&lt;DIV&gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;an issue on this project.&lt;/DIV&gt;&lt;DIV&gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;/DIV&gt;&lt;DIV&gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;I would be grateful.&lt;BR /&gt;--&lt;BR /&gt;Jonathan Griffitts&lt;BR /&gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;303 442-0556&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 19, 2006, 2:22 PM&lt;/DIV&gt;&lt;DIV&gt;Post #2 of 4 (27 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Hi Jonathan,&lt;/DIV&gt;&lt;DIV&gt;I recently did a PCB design that utilized the Mod5213 microcontroller module from NetBurner, which is based on the MCF5213. Needing a BDM solution, I purchased a USB BDM interface from P&amp;amp;E Microcomputer Systems. Like you, I was a bit unsure about how to hook it up, as several of the signals that are present in the standard 26-pin Berg connector used by BDM interfaces are absent from the 5213, at least in some packages.&lt;/DIV&gt;&lt;DIV&gt;It turns out that only a few of the signals are absolutely necessary for a working BDM solution. While I can't claim to have penetrated all the details of BDM, this is my take on the situation:&lt;BR /&gt;-The DSCLK, DSI and DSO signals are absolutely vital.&lt;BR /&gt;- The PST0 ... PST3 signals encode the core status. However, on some 5213 packages there aren't sufficient pins to bring out all these signals, and instead a signal ALLPST (logical AND of PST0 ... PST3) is provided. This at least allows a debugger to know whether the core is running or halted, which is all that's necessary for basic functionality.&lt;BR /&gt;- The BKPT signal is perhaps not absolutely necessary, but it's hard to see how any worthwhile debugging solution could do without it (it allows the core to be halted manually, typically as a result of the user clicking the "stop" or "halt" button in his debugger).&lt;BR /&gt;- Similarly, the RESET signal may not be absolutely necessary, but of course it would be very awkward if the debugger was unaware of a target reset.&lt;BR /&gt;- The DDATA signals provide additional information that can be used by a debugger to implement enhanced functionality, but they aren't essential. For example, availablity of all 4 PST and all 4 DDATA signals allows a real-time trace function to be implemented.&lt;BR /&gt;- The TEA (pin 26 in the Berg connector) signal is only necessary if you need to monitor external bus activity through your debugger.&lt;BR /&gt;- Not quite sure what the PSTCLK signal does, but I don't think it's essential for basic BDM functionality.&lt;/DIV&gt;&lt;DIV&gt;For what it's worth, here is how I wired my connection between the Mod5213 and the P&amp;amp;E interface's Berg connector:&lt;/DIV&gt;&lt;DIV&gt;5213 P&amp;amp;E&lt;BR /&gt;---- ---&lt;BR /&gt;BKPT BKPT (pin 2)&lt;BR /&gt;DSCLK DSCLK (4)&lt;BR /&gt;RSTI RESET (7)&lt;BR /&gt;DSI DSI (8)&lt;BR /&gt;DSO DSO (10)&lt;BR /&gt;ALLPST PST0 (15), PST1 (14), PST2 (13), PST3 (12)&lt;BR /&gt;PSTCLK CLK (24)&lt;/DIV&gt;&lt;DIV&gt;Plus, of course, GND and Vcc. Everything else I left open.&lt;/DIV&gt;&lt;DIV&gt;This works quite well with the P&amp;amp;E interface and P&amp;amp;E's debugger. I haven't tried it with any other debugging software.&lt;/DIV&gt;&lt;DIV&gt;Regarding the EZPort, I haven't delved into it. In my case, a Flash programming tool was supplied as part of the P&amp;amp;E package, and it works just fine using the same interconnect that also serves for BDM. For field updates, I have implemented my own software functions which rely on asynchronous serial communication (to receive new data from outside) and the functionality supplied by the CFM module (chapter 15 in the manual) for erasing and programming the Flash. I'm not sure in what situations you'd prefer to use the EZPort.&lt;/DIV&gt;&lt;DIV&gt;HTH,&lt;BR /&gt;Harald Hallen&lt;/DIV&gt;&lt;DIV&gt;*********** REPLY SEPARATOR ***********&lt;/DIV&gt;&lt;DIV&gt;On 2006-02-18 at 17:41 Jonathan Griffitts wrote:&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;This feels like a dumb question, but here goes anyway:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;&amp;gt;with the 5307 and 5407.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;&amp;gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;&amp;gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;&amp;gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;&amp;gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;&amp;gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;&amp;gt;an issue on this project.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;&amp;gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;&amp;gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;&amp;gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;&amp;gt;I would be grateful.&lt;BR /&gt;&amp;gt;--&lt;BR /&gt;&amp;gt; Jonathan Griffitts&lt;BR /&gt;&amp;gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;&amp;gt;303 442-0556&lt;BR /&gt;&amp;gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 20, 2006, 12:39 AM&lt;/DIV&gt;&lt;DIV&gt;Post #3 of 4 (26 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;As far as I understand it (and hopefully the more experianced folk will&lt;BR /&gt;correct me if I'm wrong), the explaination below is almost correct. The&lt;BR /&gt;signal on pin 26 should be TEA, not TA - i.e., Transaction Error Acknowledge&lt;BR /&gt;rather than Transaction Acknowledge, and is an input to the ColdFire, not an&lt;BR /&gt;output to be monitored. Bringing the pin low during a bus cycle cuts the&lt;BR /&gt;cycle off short and causes an exception. It can be used if the ColdFire is&lt;BR /&gt;stuck accessing non-existant addresses. It's not an essential signal, so if&lt;BR /&gt;you don't have it, don't worry.&lt;/DIV&gt;&lt;DIV&gt;mvh.,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;----- Original Message -----&lt;BR /&gt;From: "Harald Hallen"&lt;BR /&gt;Sent: Sunday, February 19, 2006 11:22 PM&lt;BR /&gt;Subject: Re: [ColdFire] MCF5213 and BDM&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt; Hi Jonathan,&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; I recently did a PCB design that utilized the Mod5213 microcontroller&lt;BR /&gt;module from NetBurner, which is based on the MCF5213. Needing a BDM&lt;BR /&gt;solution, I purchased a USB BDM interface from P&amp;amp;E Microcomputer Systems.&lt;BR /&gt;Like you, I was a bit unsure about how to hook it up, as several of the&lt;BR /&gt;signals that are present in the standard 26-pin Berg connector used by BDM&lt;BR /&gt;interfaces are absent from the 5213, at least in some packages.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; It turns out that only a few of the signals are absolutely necessary for a&lt;BR /&gt;working BDM solution. While I can't claim to have penetrated all the details&lt;BR /&gt;of BDM, this is my take on the situation:&lt;BR /&gt;&amp;gt; -The DSCLK, DSI and DSO signals are absolutely vital.&lt;BR /&gt;&amp;gt; - The PST0 ... PST3 signals encode the core status. However, on some 5213&lt;BR /&gt;packages there aren't sufficient pins to bring out all these signals, and&lt;BR /&gt;instead a signal ALLPST (logical AND of PST0 ... PST3) is provided. This at&lt;BR /&gt;least allows a debugger to know whether the core is running or halted, which&lt;BR /&gt;is all that's necessary for basic functionality.&lt;BR /&gt;&amp;gt; - The BKPT signal is perhaps not absolutely necessary, but it's hard to&lt;BR /&gt;see how any worthwhile debugging solution could do without it (it allows the&lt;BR /&gt;core to be halted manually, typically as a result of the user clicking the&lt;BR /&gt;"stop" or "halt" button in his debugger).&lt;BR /&gt;&amp;gt; - Similarly, the RESET signal may not be absolutely necessary, but of&lt;BR /&gt;course it would be very awkward if the debugger was unaware of a target&lt;BR /&gt;reset.&lt;BR /&gt;&amp;gt; - The DDATA signals provide additional information that can be used by a&lt;BR /&gt;debugger to implement enhanced functionality, but they aren't essential. For&lt;BR /&gt;example, availablity of all 4 PST and all 4 DDATA signals allows a real-time&lt;BR /&gt;trace function to be implemented.&lt;BR /&gt;&amp;gt; - The TEA (pin 26 in the Berg connector) signal is only necessary if you&lt;BR /&gt;need to monitor external bus activity through your debugger.&lt;BR /&gt;&amp;gt; - Not quite sure what the PSTCLK signal does, but I don't think it's&lt;BR /&gt;essential for basic BDM functionality.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; For what it's worth, here is how I wired my connection between the Mod5213&lt;BR /&gt;and the P&amp;amp;E interface's Berg connector:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 5213 P&amp;amp;E&lt;BR /&gt;&amp;gt; ---- ---&lt;BR /&gt;&amp;gt; BKPT BKPT (pin 2)&lt;BR /&gt;&amp;gt; DSCLK DSCLK (4)&lt;BR /&gt;&amp;gt; RSTI RESET (7)&lt;BR /&gt;&amp;gt; DSI DSI (8)&lt;BR /&gt;&amp;gt; DSO DSO (10)&lt;BR /&gt;&amp;gt; ALLPST PST0 (15), PST1 (14), PST2 (13), PST3 (12)&lt;BR /&gt;&amp;gt; PSTCLK CLK (24)&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Plus, of course, GND and Vcc. Everything else I left open.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; This works quite well with the P&amp;amp;E interface and P&amp;amp;E's debugger. I haven't&lt;BR /&gt;tried it with any other debugging software.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Regarding the EZPort, I haven't delved into it. In my case, a Flash&lt;BR /&gt;programming tool was supplied as part of the P&amp;amp;E package, and it works just&lt;BR /&gt;fine using the same interconnect that also serves for BDM. For field&lt;BR /&gt;updates, I have implemented my own software functions which rely on&lt;BR /&gt;asynchronous serial communication (to receive new data from outside) and the&lt;BR /&gt;functionality supplied by the CFM module (chapter 15 in the manual) for&lt;BR /&gt;erasing and programming the Flash. I'm not sure in what situations you'd&lt;BR /&gt;prefer to use the EZPort.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; HTH,&lt;BR /&gt;&amp;gt; Harald Hallen&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; *********** REPLY SEPARATOR ***********&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; On 2006-02-18 at 17:41 Jonathan Griffitts wrote:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;This feels like a dumb question, but here goes anyway:&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;I'm working on a design with the MCF5213, having previous experience&lt;BR /&gt;&amp;gt; &amp;gt;with the 5307 and 5407.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;The 5213 documentation explicitly says that pin 26 of the BDM connector&lt;BR /&gt;&amp;gt; &amp;gt;is to be hooked to the TA signal. The problem is that (as far as I can&lt;BR /&gt;&amp;gt; &amp;gt;tell) there *IS* no TA signal on the 5213, since there is no external&lt;BR /&gt;&amp;gt; &amp;gt;bus. What are we supposed to do with pin 26? Open? Pulled up?&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;For awhile we were looking at using a 5212 instead. The BDM situation&lt;BR /&gt;&amp;gt; &amp;gt;is even more confusing there since a number of the normal BDM signals&lt;BR /&gt;&amp;gt; &amp;gt;are not present on the processor. Fortunately for me, that's no longer&lt;BR /&gt;&amp;gt; &amp;gt;an issue on this project.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;The documentation for the "EzPort" also seems a little bit sparse. Is&lt;BR /&gt;&amp;gt; &amp;gt;there a standard connector? If I pin out an EzPort connector, I see&lt;BR /&gt;&amp;gt; &amp;gt;four EzP signals, and ground, but what else should be there? RSTI?&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt;This all makes me think I may be missing some important piece of&lt;BR /&gt;&amp;gt; &amp;gt;documentation for this stuff. If someone can point me this information,&lt;BR /&gt;&amp;gt; &amp;gt;I would be grateful.&lt;BR /&gt;&amp;gt; &amp;gt;--&lt;BR /&gt;&amp;gt; &amp;gt; Jonathan Griffitts&lt;BR /&gt;&amp;gt; &amp;gt;AnyWare Engineering Boulder, CO, USA&lt;BR /&gt;&amp;gt; &amp;gt;303 442-0556&lt;BR /&gt;&amp;gt; &amp;gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Feb 20, 2006, 3:43 PM&lt;/DIV&gt;&lt;DIV&gt;Post #4 of 4 (26 views)&lt;BR /&gt;Copy Shortcut&lt;BR /&gt;&amp;nbsp;Re: [ColdFire] MCF5213 and BDM [In reply to]&amp;nbsp; Can't Post&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--------------------------------------------------------------------------------&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;David Brown wrote:&lt;BR /&gt;&amp;gt; As far as I understand it (and hopefully the more experianced folk will&lt;BR /&gt;&amp;gt; correct me if I'm wrong), the explaination below is almost correct. The&lt;BR /&gt;&amp;gt; signal on pin 26 should be TEA, not TA - i.e., Transaction Error Acknowledge&lt;BR /&gt;&amp;gt; rather than Transaction Acknowledge, and is an input to the ColdFire, not an&lt;BR /&gt;&amp;gt; output to be monitored.&lt;/DIV&gt;&lt;DIV&gt;Correct.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; Bringing the pin low during a bus cycle cuts the&lt;BR /&gt;&amp;gt; cycle off short and causes an exception. It can be used if the ColdFire is&lt;BR /&gt;&amp;gt; stuck accessing non-existant addresses.&lt;/DIV&gt;&lt;DIV&gt;You would think this would be case, how-ever on V2 core devices I have&lt;BR /&gt;tested this is not the case. If a BDM cycle occurs to an address that&lt;BR /&gt;will not generate a TA signal the core will lock up. The v4e cores with&lt;BR /&gt;the latest version of the debug module have a command that can be used&lt;BR /&gt;to recover from this situation. I have also tried the bus hardware&lt;BR /&gt;timer, break signal etc. Reset worked but had other side effects. &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;If my testing was wrong I would be happy to hear of a solution or better&lt;BR /&gt;see a patch.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt; It's not an essential signal, so if you don't have it, don't worry.&lt;/DIV&gt;&lt;DIV&gt;The GDB BDM driver does assert the signal if no response is detected,&lt;BR /&gt;but it does not help as stated above.&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;BR /&gt;Chris&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;04-01-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:30 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;04-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:27 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2006 05:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-and-BDM/m-p/130819#M769</guid>
      <dc:creator>Dietrich</dc:creator>
      <dc:date>2006-04-01T05:57:41Z</dc:date>
    </item>
  </channel>
</rss>

