<?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: S12 BDMPod detection in App in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667714#M14053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferenc,&lt;BR /&gt;Unfortunately, my experiences with LFBDMPGMR are quite limited.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I am afraid that BDM connection is not the right tool for debugging MCU which going into stop mode.&lt;BR /&gt;The clocks are disabled and BDM connection lost in that case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think that you probably need some tool for real-time debugging. I would like to recommend for example Freemaster:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fpower-management%2Fwireless-charging-ics%2Ffreemaster-run-time-debugging-tool%3AFREEMASTER" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/power-management/wireless-charging-ics/freemaster-run-time-debugging-tool:FREEMASTER&lt;/A&gt;&lt;BR /&gt;You may read/modify/write variables/register/… during run-time. It typically uses some serial channel like SCI for communication.&lt;BR /&gt;The disadvantage is that you need to implement and service serial driver in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The CPU can not enter a low power mode (stop or wait) during BDM active mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes, you may set I bit for mask all I-bit maskable interrupts.&lt;BR /&gt;Currently, I do not have any other idea how to do a different way.&lt;BR /&gt;Note: If your application uses COP, I would like to recommend trying to set RSBCK bit for stop the COP and RTI in Active BDM mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 14:15:25 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2017-06-22T14:15:25Z</dc:date>
    <item>
      <title>S12 BDMPod detection in App</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667713#M14052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is any possible way to detect a connected BDMPod to the controller in a runing firmware ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target is realtime bypassing of the wai and stop instructions while debugger are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very rarely using the debugger and I always stuck on same problem.&lt;/P&gt;&lt;P&gt;Because my firmware uses wai and stop the debugger can't connect and/or freezes when thh processor going to sleep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I always spend of hours to finding the problem, why de debugger is freezes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I'm stupid a little...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My another question is, any easy way to disable all interrupts when I stopped and using trace command ?&lt;/P&gt;&lt;P&gt;currently im mods the CCR by hand to disable the interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BDMPod with Firmware: 6.0.0b17,&amp;nbsp;Bootloader Version: 2.0.6 with S12G, S12VR, S12XS processors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 17:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667713#M14052</guid>
      <dc:creator>fmiku</dc:creator>
      <dc:date>2017-06-20T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: S12 BDMPod detection in App</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667714#M14053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferenc,&lt;BR /&gt;Unfortunately, my experiences with LFBDMPGMR are quite limited.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I am afraid that BDM connection is not the right tool for debugging MCU which going into stop mode.&lt;BR /&gt;The clocks are disabled and BDM connection lost in that case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think that you probably need some tool for real-time debugging. I would like to recommend for example Freemaster:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fpower-management%2Fwireless-charging-ics%2Ffreemaster-run-time-debugging-tool%3AFREEMASTER" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/power-management/wireless-charging-ics/freemaster-run-time-debugging-tool:FREEMASTER&lt;/A&gt;&lt;BR /&gt;You may read/modify/write variables/register/… during run-time. It typically uses some serial channel like SCI for communication.&lt;BR /&gt;The disadvantage is that you need to implement and service serial driver in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The CPU can not enter a low power mode (stop or wait) during BDM active mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes, you may set I bit for mask all I-bit maskable interrupts.&lt;BR /&gt;Currently, I do not have any other idea how to do a different way.&lt;BR /&gt;Note: If your application uses COP, I would like to recommend trying to set RSBCK bit for stop the COP and RTI in Active BDM mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667714#M14053</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2017-06-22T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: S12 BDMPod detection in App</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667715#M14054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferenc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since most of BDM debuggers most of the time start the debug session from&amp;nbsp;resetting target into special single chip mode, you may detect it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wasn't BKGD pulled low at poweron / reset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(MODE &amp;amp; MODE_MODC_MASK)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // no, it was&amp;nbsp;high and not pulled low by BDM dongle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ,normal operating mode, we can WAI...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("WAI");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 10:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667715#M14054</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2017-06-26T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: S12 BDMPod detection in App</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667716#M14055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's an awsome idea !&lt;/P&gt;&lt;P&gt;works perfectly, Thank you ! :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 08:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-BDMPod-detection-in-App/m-p/667716#M14055</guid>
      <dc:creator>fmiku</dc:creator>
      <dc:date>2017-07-05T08:20:27Z</dc:date>
    </item>
  </channel>
</rss>

