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 Reply Children
  • No - it doesn't. Somehow I still get this pointer to 1.7.1

    What is causing that? Any other Nordic package?

  • I'm still a bit uncertain about that. Are you able to build the other examples available in NCS 1.5? And did you try my previous suggestions?

    Elfving said:
    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?

    Best regards,

    Elfving

  • 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?

Related