<?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のトピックJM32 / JM60 reset does set SRS bits properly</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/JM32-JM60-reset-does-set-SRS-bits-properly/m-p/154555#M8720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with the JM32 microcontroller and trying to detect what was the reason the micro was reset.&lt;/P&gt;&lt;P&gt;This will help me reset it via software to enter bootloader mode for example.&lt;/P&gt;&lt;P&gt;I try to reset the microcontroller provoking COP and ILOP resets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two setups configured so far:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One with the USB off, the cable is not connected to the bus.&lt;/LI&gt;&lt;LI&gt;One with the USB cable connected and the stack on (so that I can communicate via USB with the PC.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In both situations, with the same code, I cause a COP or ILOP reset, by executing a "while(1);" or &amp;nbsp;"asm("DCB 0x8D");" respectively.&lt;/P&gt;&lt;P&gt;When I am in the (1) situation, the COP or ILOP bit in SRS register is set, so that I can detect the reset has been caused by the watchdog or ILOP respectively.&lt;/P&gt;&lt;P&gt;However, when I am in the (2) situation, with the USB on, the only bit set in the SRS register is the LVD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monitoring the power supply voltage there is no drop or low voltage, so I do not understand why in the second case, SRS indicates a Low Voltage caused the reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you found any issue similar to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 20:53:34 GMT</pubDate>
    <dc:creator>davebv</dc:creator>
    <dc:date>2011-07-28T20:53:34Z</dc:date>
    <item>
      <title>JM32 / JM60 reset does set SRS bits properly</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/JM32-JM60-reset-does-set-SRS-bits-properly/m-p/154555#M8720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with the JM32 microcontroller and trying to detect what was the reason the micro was reset.&lt;/P&gt;&lt;P&gt;This will help me reset it via software to enter bootloader mode for example.&lt;/P&gt;&lt;P&gt;I try to reset the microcontroller provoking COP and ILOP resets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two setups configured so far:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One with the USB off, the cable is not connected to the bus.&lt;/LI&gt;&lt;LI&gt;One with the USB cable connected and the stack on (so that I can communicate via USB with the PC.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In both situations, with the same code, I cause a COP or ILOP reset, by executing a "while(1);" or &amp;nbsp;"asm("DCB 0x8D");" respectively.&lt;/P&gt;&lt;P&gt;When I am in the (1) situation, the COP or ILOP bit in SRS register is set, so that I can detect the reset has been caused by the watchdog or ILOP respectively.&lt;/P&gt;&lt;P&gt;However, when I am in the (2) situation, with the USB on, the only bit set in the SRS register is the LVD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monitoring the power supply voltage there is no drop or low voltage, so I do not understand why in the second case, SRS indicates a Low Voltage caused the reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you found any issue similar to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 20:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/JM32-JM60-reset-does-set-SRS-bits-properly/m-p/154555#M8720</guid>
      <dc:creator>davebv</dc:creator>
      <dc:date>2011-07-28T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: JM32 / JM60 reset does NOT set SRS bits properly</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/JM32-JM60-reset-does-set-SRS-bits-properly/m-p/154556#M8721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I wrote the title wrong. What I wanted to write was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JM32 / JM60 reset does NOT set SRS bits properly﻿&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 13:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/JM32-JM60-reset-does-set-SRS-bits-properly/m-p/154556#M8721</guid>
      <dc:creator>davebv</dc:creator>
      <dc:date>2011-07-29T13:33:06Z</dc:date>
    </item>
  </channel>
</rss>

