<?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>8-bit Microcontrollers中的主题 Processor doesn't start at reset vector after wakeup (stop1) with debugger</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Processor-doesn-t-start-at-reset-vector-after-wakeup-stop1-with/m-p/423278#M21456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MPXY8300 chip with HCS08 core inside. What I experience at the moment is that program doesn't start from reset vector after waking up from the deepest low power mode aka. Stop1, but rather continues with execution after STOP command. The code sample is shown below:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;void main(void) { &amp;nbsp; /* This code continously transmit TPMS packets of type VDO S1802020K */ &amp;nbsp;&amp;nbsp; &amp;nbsp; UINT8 i; &amp;nbsp; volatile UINT8 tmp; &amp;nbsp; volatile UINT8 RFRD_data[11]; &amp;nbsp; UINT16 delay=0;&amp;nbsp; &amp;nbsp; PTADD |= BIT3;&amp;nbsp; // set pin A3 output &amp;nbsp; if (1){ &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_OFF; &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_ON; &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_OFF; &amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp; /* Set up MCU and set STOP mode. */ &amp;nbsp; __RESET_WATCHDOG(); &amp;nbsp;&amp;nbsp; &amp;nbsp; vfnSetupMCU(); &amp;nbsp; vfnSetSTOPMode(1);&amp;nbsp; &amp;nbsp; vfnSetupRFX(); &amp;nbsp;&amp;nbsp; &amp;nbsp; EnableInterrupts;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; LED_OFF; &amp;nbsp; LED_ON; &amp;nbsp; LED_OFF;&amp;nbsp;&amp;nbsp; &amp;nbsp; _asm STOP; &amp;nbsp; LED_OFF; &amp;nbsp; LED_ON; &amp;nbsp; LED_OFF; &amp;nbsp; while(1); } &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when debugger is used, the code goes into while loop, while on execution without debugger it never reach while(1).&lt;/P&gt;&lt;P&gt;I was not able to find any information about this, and must admit that MPXY8300 documentation has a lo of errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nemanja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 12:37:38 GMT</pubDate>
    <dc:creator>nemanjasavic</dc:creator>
    <dc:date>2015-07-20T12:37:38Z</dc:date>
    <item>
      <title>Processor doesn't start at reset vector after wakeup (stop1) with debugger</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Processor-doesn-t-start-at-reset-vector-after-wakeup-stop1-with/m-p/423278#M21456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MPXY8300 chip with HCS08 core inside. What I experience at the moment is that program doesn't start from reset vector after waking up from the deepest low power mode aka. Stop1, but rather continues with execution after STOP command. The code sample is shown below:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;void main(void) { &amp;nbsp; /* This code continously transmit TPMS packets of type VDO S1802020K */ &amp;nbsp;&amp;nbsp; &amp;nbsp; UINT8 i; &amp;nbsp; volatile UINT8 tmp; &amp;nbsp; volatile UINT8 RFRD_data[11]; &amp;nbsp; UINT16 delay=0;&amp;nbsp; &amp;nbsp; PTADD |= BIT3;&amp;nbsp; // set pin A3 output &amp;nbsp; if (1){ &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_OFF; &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_ON; &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_OFF; &amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp; /* Set up MCU and set STOP mode. */ &amp;nbsp; __RESET_WATCHDOG(); &amp;nbsp;&amp;nbsp; &amp;nbsp; vfnSetupMCU(); &amp;nbsp; vfnSetSTOPMode(1);&amp;nbsp; &amp;nbsp; vfnSetupRFX(); &amp;nbsp;&amp;nbsp; &amp;nbsp; EnableInterrupts;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; LED_OFF; &amp;nbsp; LED_ON; &amp;nbsp; LED_OFF;&amp;nbsp;&amp;nbsp; &amp;nbsp; _asm STOP; &amp;nbsp; LED_OFF; &amp;nbsp; LED_ON; &amp;nbsp; LED_OFF; &amp;nbsp; while(1); } &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when debugger is used, the code goes into while loop, while on execution without debugger it never reach while(1).&lt;/P&gt;&lt;P&gt;I was not able to find any information about this, and must admit that MPXY8300 documentation has a lo of errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Nemanja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 12:37:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Processor-doesn-t-start-at-reset-vector-after-wakeup-stop1-with/m-p/423278#M21456</guid>
      <dc:creator>nemanjasavic</dc:creator>
      <dc:date>2015-07-20T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Processor doesn't start at reset vector after wakeup (stop1) with debugger</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Processor-doesn-t-start-at-reset-vector-after-wakeup-stop1-with/m-p/423279#M21457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ever made processor expert demo code on 9s08GB60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTI interrupt can wake up stop3 every time. see attached sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Fri, 07 Aug 2015 04:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Processor-doesn-t-start-at-reset-vector-after-wakeup-stop1-with/m-p/423279#M21457</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-07T04:42:57Z</dc:date>
    </item>
  </channel>
</rss>

