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 Children
  • Another possible clue: I get this error box:

    If I navigate to that specific file and dblclick, another instance of SES opens, and immediately gives me the same box again.

  • It still looks like the "GNU ARM Embedded Toolchain Directory" is wrong. I recreated your issue on a Windows 10 VM, by setting it to the path of SES, instead of the path of the ARM embedded toolchain. See pictures:

    If you change the "GNU ARM Embedded Toolchain Directory" option to the folder where you installed the ARM Embedded toolchain, then the error goes away, and you should be able to load and build the project. If you did not change the install directory in the ARM Embedded toolchain installer, the correct path should be C:\Program Files (x86)\GNU Tools Arm Embedded\7 2018-q2-update. I have attached pictures of the correct setup (on my VM), along with the content of the folder you should point to (when setting the path, only folders will be displayed, so you will not see the uninstaller):

    If you still cannot get it to work, please send pictures of the SES options window, and the folder pointed to by the "GNU ARM Embedded Toolchain Directory" option.

    Edit: Also, when opening a project, make sure that the "Clean Build Directory" checkbox is checked, to avoid risking using old settings.

  • This is a result of the "JavaScript Alert". NCS uses CMake to produce build files. When loading a project in SES, CMake is used to produce the project file for SES. However, in this case, CMake encounters an error (outputted in the "JavaScript Alert") and is therefore unable to produce a valid project file for SES. When SES then tries to open the project file, it is unable to do so and outputs this error.

    It will disappear when the other problem is solved.

  • I have gone back to the Getting Started Assistant and set GnuArmEmb_path (over at the right) to C:\arm_segger_embedded_studio_v420a_win_x64_nordic as you suggest. Verify All then fails, so I have set it back to C:\gnuarmemb as suggested earlier, and Verify all succeeds. But I'm no closer to the goal line.
    Note: I am using FireFox to access this thread. When I click the "load next" button, it cuts off the bottom of the thread, so I'm not sure if there's more below or not.
  • The "load next" button can be a bit weird sometimes. I am also using Firefox, and have not had any problems with missing replies, so I do not think it is an issue. Just to be sure, here is a link to my latest comment: https://devzone.nordicsemi.com/f/nordic-q-a/52266/startup-troubles-on-dev-kit/212934#212934 

    The Getting Started Assistant can only help you check if you have the toolchain. That is not the problem here. The problem is that you have set one of the options in SEGGER Embedded Studio wrong. There is nothing the Getting Started Assistant can do to help you here, other than this box:

    I did not suggest you set the GnuArmEmb_path in the Getting Started Assistant. Please read my latest reply again.

    Let me try to explain what you need to do again:

    The problem you have is because CMake is unable to find the toolchain needed to compile the project.

    CMake uses a path provided by SEGGER Embedded Studio (SES) to find the toolchain.

    SES requires you to input that path in one of its settings. The procedure is explained in picture 1.

    To know which path to enter, you can follow this procedure:

    1. Edit the GnuArmEmb_path in the Getting Started Assistant until you can verify the installation of the GNU ARM Embedded toolchain (see picture)

    2. Enter that same path into the "GNU ARM Embedded Toolchain Directory" option in SES (see picture)

    3. Load the project. Remember to use the non-secure version of the board (with "ns" at the end of the name), and to clean the build directory.

Related