pyOCD/coresight/cortex_m.py
def resetStopOnReset(self, software_reset=None):
        """
        perform a reset and stop the core on the reset handler
        """
        logging.debug("reset stop on Reset")

        # halt the target
        self.halt()

        # Save CortexM.DEMCR
        demcr = self.readMemory(CortexM.DEMCR)

        # enable the vector catch
        self.writeMemory(CortexM.DEMCR, demcr | CortexM.DEMCR_VC_CORERESET)

        self.reset(software_reset)

        # wait until the unit resets
        while (self.isRunning()):
            pass

        # restore vector catch setting
        self.writeMemory(CortexM.DEMCR, demcr)

        perform a reset and stop the core on the reset handler
        
perform a reset and stop the core on the reset handler
perform a reset and stop the core on the reset handler
def resetStopOnReset(self, software_reset=None):
        logging.debug("reset stop on Reset")
        self.halt()
        demcr = self.readMemory(CortexM.DEMCR)
        self.writeMemory(CortexM.DEMCR, demcr | CortexM.DEMCR_VC_CORERESET)
        self.reset(software_reset)
        while (self.isRunning()):
            pass
        self.writeMemory(CortexM.DEMCR, demcr)
def resetStopOnReset ( self , software_reset = None ) : logging . debug ( "reset stop on Reset" ) self . halt ( ) demcr = self . readMemory ( CortexM . DEMCR ) self . writeMemory ( CortexM . DEMCR , demcr | CortexM . DEMCR_VC_CORERESET ) self . reset ( software_reset ) while ( self . isRunning ( ) ) : pass self . writeMemory ( CortexM . DEMCR , demcr )
perform a reset and stop the core on the reset handler
perform a reset and stop the core on the reset handler
"""
        perform a reset and stop the core on the reset handler
        """ # halt the target # Save CortexM.DEMCR # enable the vector catch # wait until the unit resets # restore vector catch setting
self
software_reset