

def resetStopOnReset(self, software_reset=None, map_to_user=True):
    CortexM.resetStopOnReset(self, software_reset)
    if map_to_user:
        self.writeMemory(1074036736, 2, 32)
        sp = self.readMemory(0)
        pc = self.readMemory(4)
        self.writeCoreRegisterRaw('sp', sp)
        self.writeCoreRegisterRaw('pc', pc)

dataset/ETHPy150Open mbedmicro/pyOCD/pyOCD/target/target_lpc824.py LPC824.resetStopOnReset/original