<?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: Debugger/Monitor integration in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462626#M12658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eclipse/GCC/GDB might be possible, but you'd have to ditch CodeWarrior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't talk. We're running a "bare metal polling loop OS" and debugging with print statements or blinking LEDs. The USB debug pod doesn't like our watchdog setup so we can't even get reliable single-stepping. And that's with command-line GDB when it does work. Compile under Linux with command-line/Makefile GCC, edit with VI or with MS Visual Studio on a Windows VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't say which model Coldfire chip or what OS you're running. If it is an MCF54 then running Linux native on it, and debugging "user programs" on it over Telnet or SSH might be possible. Are you using MQX? Does it have any debugging support that might help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other possibility is to choose the manufacture, processor chip and operating system based on the debug support provided by that chip maker or OS provider. Freescale are pushing ARM now over 68k. Maybe some of them might support your requirements? How much life is left in the model of MCF chip you're using? Many of them are approaching or have passed EOL, and there are a lot at "not recommended for new designs".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 12:40:09 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2016-03-11T12:40:09Z</dc:date>
    <item>
      <title>Debugger/Monitor integration</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462625#M12657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Disclaimer: I have already asked this in the CodeWarrior section, but have been asked to carry my question over to this space. Link below.)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I am developing software for Coldfire Processors with CodeWarrior 10.3 and 10.5. During development, I cannot rely on e.g. USB TAP for debugging, as I often have &lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;no physical access&lt;/SPAN&gt; to the system with the ColdFire processor. However, I would still like to be able to use the CodeWarrior debugger functionality.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;On the Coldfire, we are running a ROM Monitor and we can speak with the ROM Monitor over a network interface. Now I am looking for a way to integrate the ROM Monitor into CodeWarrior as a new connection type. I know that this was possible with older (Metrowerks) CodeWarrior versions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;The original question was:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;What interface would I use to accomplish this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;To elaborate this a bit, we are currently thiking about a number of ways to achieve debugging access without BDM:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;1. [CW [CW Debugger]] &amp;lt;- CCS protocol over TCP -&amp;gt; [our own implementation of a CCS server] &amp;lt;- monitor protocol -&amp;gt; [[Monitor] Coldfire]&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;We have not been able to obtain information on the CCS protocol, so this route seems improbable.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;2. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;[CW [CW Debugger]] &amp;lt;- GDI -&amp;gt; [our own GDI plugin] &amp;lt;- monitor protocol -&amp;gt; [[Monitor] Coldfire]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;We have not been able to obtain information on the GDI (Generic Debug Instrument, of Metrowerks fame) interface, so this route seems improbable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;[CW [CW Debugger]] &amp;lt;- App TRK protocol -&amp;gt; [&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;our own implementation of an App TRK server&lt;/SPAN&gt;] &amp;lt;- monitor protocol -&amp;gt; [[Monitor] Coldfire]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The MetroTRK (of Metrowerks fame) protocol is no longer supported. App TRK is still supported by Codewarrior, but nominally only for applications running on Linux. This route is improbable, but maybe less so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;4. [m68k-gdb] &amp;lt;- GDB Remote Serial Protocol over TCP -&amp;gt; [our own GDB server] &amp;lt;- monitor protocol -&amp;gt; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;[[Monitor] Coldfire]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;This route is definitely possible. However: a.) We're stepping outside Codewarrior: &lt;EM&gt;Less integrated, more development environments&lt;/EM&gt; and b.) Without actually having it implemented, we're not sure how well GDB deals with the proprietary Codewarrior Compiler's ELF files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;STRONG&gt;Do you have more information on any of the routes, experiences with these approaches or other, workable ideas?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2028" data-containertype="14" data-objectid="386288" data-objecttype="1" href="https://community.nxp.com/thread/386288"&gt;ROM Monitor for Debugger Access&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 08:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462625#M12657</guid>
      <dc:creator>michaelmeier</dc:creator>
      <dc:date>2016-03-09T08:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger/Monitor integration</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462626#M12658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eclipse/GCC/GDB might be possible, but you'd have to ditch CodeWarrior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't talk. We're running a "bare metal polling loop OS" and debugging with print statements or blinking LEDs. The USB debug pod doesn't like our watchdog setup so we can't even get reliable single-stepping. And that's with command-line GDB when it does work. Compile under Linux with command-line/Makefile GCC, edit with VI or with MS Visual Studio on a Windows VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't say which model Coldfire chip or what OS you're running. If it is an MCF54 then running Linux native on it, and debugging "user programs" on it over Telnet or SSH might be possible. Are you using MQX? Does it have any debugging support that might help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other possibility is to choose the manufacture, processor chip and operating system based on the debug support provided by that chip maker or OS provider. Freescale are pushing ARM now over 68k. Maybe some of them might support your requirements? How much life is left in the model of MCF chip you're using? Many of them are approaching or have passed EOL, and there are a lot at "not recommended for new designs".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 12:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462626#M12658</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-03-11T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger/Monitor integration</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462627#M12659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using MCF54418 parts. We are running MQX on the processor. The words "BDM" and "monitor" are to be found in the MQX source code. MQX seems to have some configuration options around cache invalidation to help when a debug monitor/BDM modifies data, or even worse, code behind the OS' back. I did not find any information about a monitor being built into MQX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the debugging situation would be clearly better under Linux as we'd be able to run a stock gdbserver over a custom communications line or the AppTRK server provided by Freescale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Eclipse/GCC/GDB might be possible, but you'd have to ditch CodeWarrior.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If we're lucky, we might be able to use CodeWarrior to write and compile our programs and then use GDB to debug. I have not had the time to write a lot of code, but I have done a preliminary experiment: I load an .elf generated by CodeWarrior into gdb. gdb does not complain and knows about the symbols and the source code. In other words: there is hope :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The other possibility is to choose the manufacture, processor chip and operating system based on the debug support provided by that chip maker or OS provider. Freescale are pushing ARM now over 68k.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I like the way you are thinking! :smileygrin: I believe the situation is nicer with the ARM chips as most manufacterers provide an IDE built around GCC/gdb. Especially gdb has documented interfaces suited and known to mere mortals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately we have the MCF54418 in a product which has hit the market a year ago and we plan to sell it for the coming years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;How much life is left in the model of MCF chip you're using?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Freescale/NXP will sell us the chip for another 10 years. However I have gathered from Freescale representatives and also from my own experience that support on the Coldfire line is pretty line. They seem to have moved their talent toward their ARM solutions. As we plan to use the processor for the coming years, we are looking to make our debugging situation more agreeable and productive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 10:21:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Debugger-Monitor-integration/m-p/462627#M12659</guid>
      <dc:creator>michaelmeier</dc:creator>
      <dc:date>2016-03-21T10:21:52Z</dc:date>
    </item>
  </channel>
</rss>

