PyOCD

From ElectroDragon
Revision as of 11:20, 26 December 2019 by Chao (talk | contribs) (Created page with "==== (DAPLINK or CMSIS-DAP) PyOCD ==== * Install - pip install --pre -U pyocd thumb|right * Old commands # -se 表示只擦除需要用到...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(DAPLINK or CMSIS-DAP) PyOCD

  • Install - pip install --pre -U pyocd
Pyocd-erase-nrf52832.png
  • Old commands
# -se 表示只擦除需要用到的区域
$ pyocd-flashtool -t nrf52 -se your-hex-file.hex
# 如果需要整片擦除,可以使用 -ce 参数
$ pyocd-flashtool -t nrf52 -ce your-hex-file.hex
# 如果只是想擦除,不编程,可以不带hex文件参数
$ pyocd-flashtool -t nrf52 -ce
  • New commands
pyocd list can list devices
C:\Users\Administrator>pyocd list
 #   Probe               Unique ID

 0   micro:bit [nrf51]   990000001c89c6d500000000000000000000000097969902
  • pyocd flash --target NRF52840 nrf*.hex