NordicPlayground / nRF5-universal-prog

The nrfjprog command line tool implemented in Python.
BSD 3-Clause "New" or "Revised" License
30 stars 6 forks source link

Document for J-Link Version #22

Closed rkawajiri closed 4 years ago

rkawajiri commented 8 years ago

Please specify the compatible versions of J-Link on documents.

First, when I tried first, console shows error like this

Erases the device's FLASH.
Traceback (most recent call last):
  File "/usr/local/opt/pyenv/versions/nrf/bin/nrfjprog", line 9, in <module>
    load_entry_point('nrfjprog', 'console_scripts', 'nrfjprog')()
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/__main__.py", line 352, in main
    cli.run()
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/__main__.py", line 116, in run
    func(self.args)
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/model/perform_command_jlink.py", line 131, in erase
    nrf = SetupCommand(args)
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/model/perform_command_jlink.py", line 57, in __init__
    if self._setup('NRF52'):
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/model/perform_command_jlink.py", line 108, in _setup
    self._connect_to_emu()
  File "/usr/local/Cellar/pyenv/20160202/versions/2.7.9/envs/nrf/src/hogehoge/nrfjprog/model/perform_command_jlink.py", line 97, in _connect_to_emu
    self.api.connect_to_emu_without_snr(self.DEFAULT_JLINK_SPEED_KHZ)
  File "/usr/local/opt/pyenv/versions/2.7.9/envs/nrf/lib/python2.7/site-packages/pynrfjprog/API.py", line 347, in connect_to_emu_without_snr
    raise APIError(result)
pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -12 LOW_VOLTAGE.

Then I updated JLink to latest version, it works.

Detail conditions are below.

I think the documentation is also necessary for JLink update.