<?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: how to goto VECTOR 2 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081219#M17336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;for your reply very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset pin of MCU connect with a 100nF capacitor,now i remove it,but still can't goto COP Reset Vector.&lt;/P&gt;&lt;P&gt;The difference is the system always halt after the first timeout of COP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,the system type out the value of gb_flag every 500ms after system initialization through CAN,and i always see the value 0x00,so i know that the COP Reset didn't happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2020 02:19:55 GMT</pubDate>
    <dc:creator>everkimage</dc:creator>
    <dc:date>2020-04-10T02:19:55Z</dc:date>
    <item>
      <title>how to goto VECTOR 2</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081217#M17334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My&amp;nbsp;mcu is MC9S12XE.The Vector 0 is __Startup(),it's the default startup routine.And Vector 2 is __cop_reset_startup(),just like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;byte gb_flag = 0x00;&lt;/P&gt;&lt;P&gt;void __cop_reset_startup(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gb_flag = 0x55;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;main();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In main(),cop is enabled without&amp;nbsp;feeding,after about 1 seconds later,system restart but don't goto __cop_reset_startup(),cause gb_flag == 0x00;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i change "VECTOR 2 __cop_reset_startup" to "VECTOR ADDRESS 0xFFFA __cop_reset_startup",result is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debug the project and find that when system restart,PC is equal to 0xFF13.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 07:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081217#M17334</guid>
      <dc:creator>everkimage</dc:creator>
      <dc:date>2020-04-09T07:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to goto VECTOR 2</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081218#M17335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the COP reset vector usage depends on COP reset, COP reset recognition and correct external HW becasue the COP reset recognition depends on timing characteristics of the external reset circuitry.&lt;/P&gt;&lt;P&gt;For more info look at: &lt;A href="https://community.nxp.com/docs/DOC-103737"&gt;S12 FAMILY DEVICES COP RECOGNITION CONSIDERATIONS_v2.0.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If large capacitor is used for reset circuitry then the rising time of the voltage exceeds the time for COP reset recognition and the MCU starts with POR.&lt;/P&gt;&lt;P&gt;BTW, the COP is not debuggable because the MCU losts BDM connection during reset. Better is to use some temporary signal or diode to signalize the COP.&lt;/P&gt;&lt;P&gt;The COP SW example can be found at&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-329209"&gt;https://community.nxp.com/docs/DOC-329209&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(XET is a subset device of XEP100 device)&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 08:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081218#M17335</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-04-09T08:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to goto VECTOR 2</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081219#M17336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;for your reply very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reset pin of MCU connect with a 100nF capacitor,now i remove it,but still can't goto COP Reset Vector.&lt;/P&gt;&lt;P&gt;The difference is the system always halt after the first timeout of COP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,the system type out the value of gb_flag every 500ms after system initialization through CAN,and i always see the value 0x00,so i know that the COP Reset didn't happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 02:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081219#M17336</guid>
      <dc:creator>everkimage</dc:creator>
      <dc:date>2020-04-10T02:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to goto VECTOR 2</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081220#M17337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I remove the capacitor connected with RESET pin,and change VECTOR 2 to __Startup()，system can reset again and again,but when i change VECTOR 2 to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;__cop_reset_startup()，system only reset once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is there any wrong with function __cop_reset_startup()?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 03:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081220#M17337</guid>
      <dc:creator>everkimage</dc:creator>
      <dc:date>2020-04-10T03:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to goto VECTOR 2</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081221#M17338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally it's ok.&lt;/P&gt;&lt;P&gt;First remove the capacitor,then initialize the SP and MMC before invoke the Init() in function __cop_reset_startup().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 03:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/how-to-goto-VECTOR-2/m-p/1081221#M17338</guid>
      <dc:creator>everkimage</dc:creator>
      <dc:date>2020-04-10T03:37:28Z</dc:date>
    </item>
  </channel>
</rss>

