<?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のトピックRe: MCF51JM32VLH won't enter WAIT mode without BDM connected (it hangs)</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182441#M7477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Wayne, sorry for this late reply &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt; I think i've finaly had time to find the problem (It didn't bother me that much before). Only thing I had to do was write this: INTC_WCR = 0x80; But it is strange, because reference manual says that it is the default state after reset .... so theoreticaly this line shouldn't be needed. But I'm happy it helped &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt; Martin&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 14:15:49 GMT</pubDate>
    <dc:creator>Novalis</dc:creator>
    <dc:date>2010-06-02T14:15:49Z</dc:date>
    <item>
      <title>MCF51JM32VLH won't enter WAIT mode without BDM connected (it hangs)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182439#M7475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;do you have any idea, why I cannot put MCF51JM32VLH into WAIT mode when it is not connected to BDM?&lt;/P&gt;&lt;P&gt;When connected to BDM, everything works fine. When I disconnect BDM, unplug power and plug it back, CPU hangs (only watchdog resets it) when I try to enter wait mode ( _Wait;&amp;nbsp; macro)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked fine with sample of MCF51JM128VLH I received from Freescale, but now when I bought MCF51JM32VLH it only works with BDM connected. I don't know what can the problem be. HW should be the same ... I don't have more samples to try it again on new PCB I'm putting JM32 to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Novalis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 20:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182439#M7475</guid>
      <dc:creator>Novalis</dc:creator>
      <dc:date>2010-03-11T20:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: MCF51JM32VLH won't enter WAIT mode without BDM connected (it hangs)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182440#M7476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the setting for SOPT1? Note that some SOPT1 bits are write-once. Also, what are the instructions for entering WAIT mode, typically defined in deriviative.h? For example here is what I am using for MCF51QE128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Watchdog disabled. Stop Mode Enable. Background Pin enable. RESET pin enable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOPT1 = SOPT1_BKGDPE_MASK | SOPT1_STOPE_MASK;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define _Stop asm ( mov3q #4,d0; bclr.b d0,SOPT1; stop #0x2000; )&lt;BR /&gt;&amp;nbsp; /*!&amp;lt; Macro to enter stop modes, STOPE bit in SOPT1 register must be set prior to executing this macro */&lt;BR /&gt;&lt;BR /&gt;#define _Wait asm ( mov3q #4,d0; bset.b d0,SOPT1; nop; stop #0x2000; )&lt;BR /&gt;&amp;nbsp; /*!&amp;lt; Macro to enter wait mode */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is CPUCR being set? If so, to what value? We were using an early version of the MCF51QE128 which had a timing problem when entering stop and accessing flash memory, so interrupt vectors were moved to ram. (this has since been fixed in the MCF51QE128), however, we also had to set CPUCR as follows, although you may need different values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm ( move.l #0xD2000000, D0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm ( movec D0, CPUCR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPMSC2 = SPMSC2_LPWUI_MASK | SPMSC2_PPDE_MASK ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTC_WCR = 0x80; // needed to wake from stop mode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // and interrupt (not reset) with errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPMSC1 = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 20:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182440#M7476</guid>
      <dc:creator>WayneZ</dc:creator>
      <dc:date>2010-03-26T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: MCF51JM32VLH won't enter WAIT mode without BDM connected (it hangs)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182441#M7477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Wayne, sorry for this late reply &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt; I think i've finaly had time to find the problem (It didn't bother me that much before). Only thing I had to do was write this: INTC_WCR = 0x80; But it is strange, because reference manual says that it is the default state after reset .... so theoreticaly this line shouldn't be needed. But I'm happy it helped &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt; Martin&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 14:15:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF51JM32VLH-won-t-enter-WAIT-mode-without-BDM-connected-it/m-p/182441#M7477</guid>
      <dc:creator>Novalis</dc:creator>
      <dc:date>2010-06-02T14:15:49Z</dc:date>
    </item>
  </channel>
</rss>

