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

segger and nrf 9160 DK, how to download code to board?

Hello 

I am starting with nRF 9160 DK and Segger Embedded Studio, I installed Segger through toolchain, the activation sim, updated of certificated and connect the DK to nRF connect for cloud was fine, but in testing application doesn´t transmit GPS data (I need to use the onboard antenna), other variables was good (temp, hum, orientation, pressure and signal power).

I need only GPS data, but to learn about IDE and 9160 DK I tried to download an example of blink, I did the following in IDE:

File -> Open nRF Connect SDK Project... then choose Cmake file of these path C:\Users\julio\ncs\v1.4.0\zephyr\samples\basic\blinky_pwm

But it shows me script error.

Apart of that I don’t know how to access the main code of examples to see the code and I don’t know how to download code to nRF 9160 DK to test 

Characteristics of my system:

Windows 10 home 64 bits

I have partitioned my hard disk C:\ for programs and E:\ for data 

nRF  Connect SDK v1.4.0

It's my first participation in the community if I missing something or made a mistake, I apologize.

Best Regards

Julio

Parents
  • Hi Julio,

    You can find the guide for building and programming a sample application here, but I'll also some of it here for you.

    Could you try opening another sample, like one in the nrf folder instead and see if the error persists? Since you're already interested in testing GPS, you could try the GPS sample for nRF9160. This sample will print GPS data, so then you'll also be able to see whether you get a GPS fix or not.

    I don't know what configurations you chose when opening the project, but for the nRF9160 DK you must remember to choose non-secure when you're building samples that run in the non-secure domain (you can read more about secure vs non-secure here if you're interested). By that, I mean that you have to choose "nrf9160dk_nrf9160ns" as your build target, with "ns" for non-secure. Below you can see a picture of how to open the project:

    After you've opened the project in SES, you can see the main.c file by opening "Solution 'build'" -> "Project 'app/libapp.a'" -> "C_COMPILER__app" in the project window on the left side, see picture below:

    In order to download the code to your nRF9160 DK, you first have to build it, which you do by going to "Build" -> "Build Solution". After you've successfully built it, you can program your board by going to "Target" -> "Download zephyr/merged.hex" or "Target" -> "Download zephyr/zephyr.elf".

    As for your problem with not transmitting GPS data, I would recommend seeing if you get a fix with the GPS sample. However, it might take some time to get the first fix, as you have to get a signal from the satellites, and then the DK has to download quite a lot of data. In addition, you need a clear enough view to the satellites in order to get a signal from them, and things like buildings, trees, etc. will affect the GPS signal. How are your testing conditions when testing GPS? If you're testing indoors, you're unlikely to get a good GPS signal, especially without using an external antenna.

    Best regards,

    Marte

Reply
  • Hi Julio,

    You can find the guide for building and programming a sample application here, but I'll also some of it here for you.

    Could you try opening another sample, like one in the nrf folder instead and see if the error persists? Since you're already interested in testing GPS, you could try the GPS sample for nRF9160. This sample will print GPS data, so then you'll also be able to see whether you get a GPS fix or not.

    I don't know what configurations you chose when opening the project, but for the nRF9160 DK you must remember to choose non-secure when you're building samples that run in the non-secure domain (you can read more about secure vs non-secure here if you're interested). By that, I mean that you have to choose "nrf9160dk_nrf9160ns" as your build target, with "ns" for non-secure. Below you can see a picture of how to open the project:

    After you've opened the project in SES, you can see the main.c file by opening "Solution 'build'" -> "Project 'app/libapp.a'" -> "C_COMPILER__app" in the project window on the left side, see picture below:

    In order to download the code to your nRF9160 DK, you first have to build it, which you do by going to "Build" -> "Build Solution". After you've successfully built it, you can program your board by going to "Target" -> "Download zephyr/merged.hex" or "Target" -> "Download zephyr/zephyr.elf".

    As for your problem with not transmitting GPS data, I would recommend seeing if you get a fix with the GPS sample. However, it might take some time to get the first fix, as you have to get a signal from the satellites, and then the DK has to download quite a lot of data. In addition, you need a clear enough view to the satellites in order to get a signal from them, and things like buildings, trees, etc. will affect the GPS signal. How are your testing conditions when testing GPS? If you're testing indoors, you're unlikely to get a good GPS signal, especially without using an external antenna.

    Best regards,

    Marte

Children
Related