Skip to content

Instantly share code, notes, and snippets.

@jitomesky
Created August 9, 2014 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitomesky/ad63626907065ccaa7f3 to your computer and use it in GitHub Desktop.
Save jitomesky/ad63626907065ccaa7f3 to your computer and use it in GitHub Desktop.
pyOCD step execute Test
from pyOCD.board import MbedBoard
import logging
logging.basicConfig(level=logging.INFO)
board = MbedBoard.chooseBoard()
target = board.target
# flash = board.flash
target.resume()
target.halt()
while True:
print "pc: 0x%X" % target.readCoreRegister("pc")
target.step()
raw_input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment