This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Startup Troubles on Dev Kit

I was able one time to power up the nRF9160 dev kit and see it connect to the cellular network and to nRF Cloud. Since then, it will only blink LED3, which indicates that it can't connect. I would like to re-flash the firmware, but I'm totally lost in all the circular links in the documentation. I have used the nRF52832 dev kit extensively so I'm quite familiar with the process, but it appears the nRF9160 dev kti adds several more layers of complexity. I would like to be able to load a simple "hello world" application, and then build on that with my application source code. Please guide me to some concise documentation.

Parents Reply
  • That is a known problem and has been fixed on the master branch.

    What has happened is this:

    The hub python module that is used by Zephyr has changed the name to git-spindle. Then, a new module was created with the name hub. If you edit the name of the package in the requirements file to "git-spindle", it should work.

    Sadly, bugfixes like this have not been backported to the v1.0.0 release.

Children
  • Do I need to just go back and start over? Your message above was not very clear, but I replaced "hub" in Requirements.txt in the Zephyr directory and it seems to be a little happier. However, there's still a red error message (boldface below) in the resulting text:

    Requirement already satisfied: asn1crypto>=0.21.0 in c:\python37\lib\site-packages (from cryptography>=1.5->jwcrypto>=0.5.0->github3.py>=0.8.2->git-spindle==2.0
    ->-r zephyr\scripts\requirements.txt (line 10)) (0.24.0)
    Requirement already satisfied: pycparser in c:\python37\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.5->jwcrypto>=0.5.0->github3.py>=0.8.2->git-s
    pindle==2.0->-r zephyr\scripts\requirements.txt (line 10)) (2.19)
    ERROR: pyocd 0.19.0 has requirement pyyaml<6.0,>=5.1, but you'll have pyyaml 4.2b4 which is incompatible.
    Installing collected packages: wheel, docutils, sphinxcontrib-websupport, sphinx, breathe, sphinx-rtd-theme, sphinxcontrib-svg2pdfconverter, junit2html, ply, jw
    crypto, uritemplate, github3.py, whelk, git-spindle, arrow, gitlint, pyelftools, websocket-client, sortedcontainers, intervaltree, pyusb, pywinusb, pyocd, windo
    ws-curses, Pillow, more-itertools, zipp, importlib-metadata, pluggy, wcwidth, py, atomicwrites, pytest
      Found existing installation: docutils 0.15.2
        Uninstalling docutils-0.15.2:
          Successfully uninstalled docutils-0.15.2
      Found existing installation: Sphinx 2.2.0
        Uninstalling Sphinx-2.2.0:
          Successfully uninstalled Sphinx-2.2.0
      Running setup.py install for junit2html ... done
      Running setup.py install for ply ... done
      Running setup.py install for whelk ... done
      Running setup.py install for git-spindle ... done
      Running setup.py install for pyelftools ... done
      Running setup.py install for intervaltree ... done
      Running setup.py install for pyusb ... done
      Running setup.py install for pywinusb ... done
      Running setup.py install for pyocd ... done
    Successfully installed Pillow-6.1.0 arrow-0.14.2 atomicwrites-1.3.0 breathe-4.9.1 docutils-0.14 git-spindle-2.0 github3.py-1.3.0 gitlint-0.12.0 importlib-metada
    ta-0.23 intervaltree-3.0.2 junit2html-22 jwcrypto-0.6.0 more-itertools-7.2.0 pluggy-0.13.0 ply-3.10 py-1.8.0 pyelftools-0.24 pyocd-0.19.0 pytest-5.1.3 pyusb-1.0
    .2 pywinusb-0.4.2 sortedcontainers-2.1.0 sphinx-1.7.5 sphinx-rtd-theme-0.4.3 sphinxcontrib-svg2pdfconverter-1.0.1 sphinxcontrib-websupport-1.1.2 uritemplate-3.0
    .0 wcwidth-0.1.7 websocket-client-0.56.0 wheel-0.30.0 whelk-2.7.1 windows-curses-2.0.1 zipp-0.6.0

    10:17:04.11 d:\296\FW\ncs>

  • Sorry for being unclear. It is not necessary to start over. Just change "hub==2.0" to "git-spindle==2.0" (as I believe you did), and rerun the pip3 command.

    Regarding the pyocd error, you can safely ignore it.

  • Okay, I've jumped thru all the hoops to reinstall the package. Now I'm uto the same place I was a week ago. When I attempt to open the Asset Tracker project, I get this error box:

    Here's te option box, exactly as the tools auto-filled it:

  • It still looks like the "GNU ARM Embedded Toolchain Directory" option is wrong. Can you confirm that the content of the folder you have provided in that option contains the same as:

    Also, when building an application which uses the modem on the nRF91, you must build the application as non-secure. The board name should be "nrf9160_pca10090ns", notice the "ns" at the end.

  • I cannot find any directory that looks like your picture. I presume we're talking about where I unzipped EmbeddedStudio_ARM_Nordic_v420a_win_x64.zip. Per your suggestion, I unzipped it directly to C:\ (which seems to me like a bad idea to begin with, but you're the expert). I have tried setting the path in SES to both C:\ and c:\arm_segger_embedded_studio_v420a_win_x64_nordic, same result.

Related