<?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 Regarding machine exception behavior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051381#M17183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using S12ZVML64 MCU.&lt;/P&gt;&lt;P&gt;I have not implemented the machine exception ISR in my code.&lt;/P&gt;&lt;P&gt;Then,I want to know that,&lt;/P&gt;&lt;P&gt;what will be the behavior of code if machine exception occurred in software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2020 09:46:03 GMT</pubDate>
    <dc:creator>pratibhasurabhi</dc:creator>
    <dc:date>2020-06-03T09:46:03Z</dc:date>
    <item>
      <title>Regarding machine exception behavior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051381#M17183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using S12ZVML64 MCU.&lt;/P&gt;&lt;P&gt;I have not implemented the machine exception ISR in my code.&lt;/P&gt;&lt;P&gt;Then,I want to know that,&lt;/P&gt;&lt;P&gt;what will be the behavior of code if machine exception occurred in software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 09:46:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051381#M17183</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-06-03T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding machine exception behavior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051382#M17184</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;I would like to mention that the Machine Exception is not a standard interrupt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"machine exception causes the CPU to not perform any stack operations, so it is not possible to return to application code by simply using an RTI instruction."&lt;/P&gt;&lt;P&gt;For more details, please, refer to the S12ZCPU RM section "7.3.3 Machine Exception"&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=S12ZCPURM" title="https://www.nxp.com/webapp/Download?colCode=S12ZCPURM"&gt;https://www.nxp.com/webapp/Download?colCode=S12ZCPURM&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Machine Exception routine will result in a crash. The interrupt can be used for MCU reset. Also, it is useful for debugging and check what is the source of the machine exception before the crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2020 09:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051382#M17184</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-06-04T09:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding machine exception behavior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051383#M17185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dianabatrlova"&gt;dianabatrlova&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;I understand the routine will result in crash.&lt;/P&gt;&lt;P&gt;I have a few queries regarding the term crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1. What exactly does it mean? Will the software behaviour be known or unknown.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2. From the CPU RM : "A Machine Exception causes the S12Z CPU to jump to the address in the Machine Exception vector as&lt;BR /&gt;soon as the current instruction finishes execution."&lt;/P&gt;&lt;P&gt;- Now considering that I have not defined the handler of machine exception in my software, when the CPU jumps to the vector of machine exception, it will not find any code to execute . So will CPU try to execute the code/opcode which is present and what is the effect of executing such pre-existing code/opcode ? and is it known what opcode/code is present in such scenario? [example : 0xFF(erased)]. I am not sure it is just an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clarify, if possible on those queries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 04:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051383#M17185</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-06-05T04:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding machine exception behavior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051384#M17186</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;I have made some tests and when the handler is not defined the code jumps at the 0xFFFFFF address (defined by the erased machine exception vector) which triggers another machine exception.&lt;/P&gt;&lt;P&gt;See the note in the S12ZCPU RM below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112490i0F8349A84FAD3180/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051384#M17186</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-06-10T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding machine exception behavior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051385#M17187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dianabatrlova"&gt;dianabatrlova&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood the above obsevration&lt;/P&gt;&lt;P&gt;So, does it mean that recursive machine exception will be thrown(issued) and the execution of code will be stuck at this erased machine exception vector (0xFFFFFF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 03:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Regarding-machine-exception-behavior/m-p/1051385#M17187</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2020-06-12T03:27:14Z</dc:date>
    </item>
  </channel>
</rss>

