This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use SDK 1.5

I am working with UBLOX AOA part and trying to program a custom module of nrf52833 instead of their UBLOX C209.

According to UBLOX they are using NRF CONNECT SDK 1.5 in order to complie and program the code.

As we know the latest version 1.7.1

I downloaded the version 1.5 but I got the following error:

avipa@DESKTOP-AN49O23 MINGW64 ~/OneDrive/Projects/UBloxAOA/C209Tag/c209-aoa-tag-master
$ west build -p=always -b nrf52833dk_nrf52833
-- west build: making build dir C:\Users\avipa\OneDrive\Projects\UBloxAOA\C209Tag\c209-aoa-tag-master\build pristine
CMake Error: Error processing file: C:/Users/avipa/ncs/v1.7.1/zephyr/cmake/pristine.cmake
FATAL ERROR: command exited with status 1: 'C:\Users\avipa\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE' -P C:/Users/avipa/ncs/v1.7.1/zephyr/cmake/pristine.cmake

How can I fix this? Looks like V7.1,7 is still used somehow

Parents
  • Hello Avi!

    There might be some Path issues here, it seems that the Zephyr path points to NCS 1.7. Could you try to add the project in the NCS v1.5 folders and see if that makes a difference? Or open the command line you use from the Toolchain Manager App?

    If I understood you correctly you are using your own nRF52833 board (potentially the DK) and try to run the UBLOX SW on it?

    Best regards,

    Elfving

  •  I am using my own nRF52833 board or  the DK and try to run the UBLOX SW on it

    I removed my previous 7.1.7 from my PC and installed 1.5

    Under ncs, I have only 1.5 folder

  • Yes, I put the project folder in the ncs 1.5 under the /ncs/v1.5.0/zephyr/samples/c209-aoa-tag-master

    And run the command:  west build -b ubx_evkninab4_nrf52833

    And I still get the same error:

    DESKTOP-AN49O23 MINGW64 ~/ncs/v1.5.0/zephyr/samples/c209-aoa-tag-master ((v2.4.99-ncs1))
    $ west build -b ubx_evkninab4_nrf52833
    CMake Error: The current CMakeCache.txt directory C:/Users/avipa/ncs/v1.5.0/zephyr/samples/c209-aoa-tag-master/build/CMakeCache.txt is different than the directory c:/Users/avipa/OneDrive/Projects/UBloxAOA/C209Tag/c209-aoa-tag-master/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
    The system cannot find the file specified
    CMake Error: Generator: execution of make failed. Make command was: C:/Users/avipa/ncs/v1.7.1/toolchain/opt/bin/ninja.exe &&
    FATAL ERROR: command exited with status 1: 'C:\Users\avipa\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE' --build 'C:\Users\avipa\ncs\v1.5.0\zephyr\samples\c209-aoa-tag-master\build'

  • Are you able to build any other examples?

    Regards,

    Elfving

  • Yes, I ran the blinky example using the SES (as part of the Zephyr in SDK Connect).

    UBLOX are giving 2 options to build and download: SES and with West.

    The instructions for SES are:

    • In nRF Connect go to Toolchain Manager and install it.

    • Open the Toolchain Manager and download nRF Connect SDK 1.5.

    • After download click Open IDE.

    • In Segger Embedded Studio go to File -> open nRF connect SDK project.

    • Select the aoa_beacon root folder.

    • Select the ubx_evkninab4_nrf52833 inside u-blox-sho-OpenCPU/zephyr folder as the board config.

    • After SeS loaded the project you can build and flash.

    I couldn't find the the aoa_beacon root folder - So I used the other way of West:

    • Open nRF Connect and open Toolchain Manager
    • Right next to the "nRF Connect SDK v1.5.0" you have a dropdown, click "Open bash". This step is not required, but it will set up the necessary environment variables for you.
    • cd to project folder
    • west build -b ubx_evkninab4_nrf52833
    • west flash
    • west flash only should be enough for building + flashing after that, specifying the board is only needed on the first build.

    Maybe I should use the first way - but where is the aoa_beacon root folder?

  • Hello again,

    I am liking those instructions. At first I thought there was an issue with the environment variables, but it is true that pressing "open bash" on the option for your given and downloaded NCS version should take care of that. And if that option also allows you to build other samples such as for instance the Blinky one, then we need to look elsewhere.

    Avi said:
    I couldn't find the the aoa_beacon root folder

    I would assume that both of the sets of instructions are referring to the same root folder here. Odd that it is hard to find though. Would you mind sending me the Ublox SW where the aoa_beacon root folder should be?

    Best regards,

    Elfving

  • Hi,

    Probably a build with the newer nRF Connect version has left some traces in the build system in your repo. Try with a completely new repo or by cleaning the build system:

    west build -t pristine  (or remove the whole build folder)

    west build -b nrf52833dk_nrf52833

    Best Regards,

    Magnus

Reply
  • Hi,

    Probably a build with the newer nRF Connect version has left some traces in the build system in your repo. Try with a completely new repo or by cleaning the build system:

    west build -t pristine  (or remove the whole build folder)

    west build -b nrf52833dk_nrf52833

    Best Regards,

    Magnus

Children
Related