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

building error / Branch error. git merge. git pull. west update

Everything worked on friday.

but after a git pull and west update on Master branch.   but instead of Master branch is an unknown number, or a hash. this happens on everyone but  not on nrf directory it stays in Master.

I found out that after west update it create a new branch called manifest-rev. I deleted the new branch but it still reappere when I do west update. I tried to merge it in to master. but nothing is working. I also try to reatach the HEAD since is detached.

USN+103438@S-HVE9127 MINGW64 /c/ncs/zephyr ((d70aa052bc...))
$ git branch
* (HEAD detached at refs/heads/manifest-rev)
manifest-rev
master

I also saw the log

USN+103438@S-HVE9127 MINGW64 /c/ncs/zephyr ((d70aa052bc...))
$ git log
commit d70aa052bc4b333e97a36b4e5832a8509b4aa417 (HEAD, manifest-rev)
Author: Håkon Øye Amundsen <[email protected]>
Date: Fri Apr 5 23:44:01 2019 +0200

cmake: re-apply patch needed for multi image

Without this patch multi image builds will fail
as the modules' build directories are the same
for each image, resulting in an error.

With this patch, each module build dir is placed
within each images build dir, making them unique.

Signed-off-by: Håkon Øye Amundsen <[email protected]>

commit 156cc434efb7e0d94a70887207fecc189e2b0c4f
Merge: 6396ec420f 7eca2568bd
Author: Robert Lubos <[email protected]>
Date: Thu Apr 4 16:03:24 2019 +0200

[nrf mergeup] Merge upstream up to commit 7eca256

but after these changes nothing is working.

I browsed the web for anwers about how to handle gitbash. but I fucking give up.

Parents
  • Hi Henning,

    Please do follow the steps shown in the Documentation referenced in my first post.

    • Let's start from a clean slate.
    1. make a folder called "ncs"
    2. inside that folder, use the command:  (to clone the manifest repo "nrf")
      west init -m https://github.com/NordicPlayground/fw-nrfconnect-nrf 
    3. Then enter the following command:  (to clone the project repositories)
      west update
    4. Then you are done, and the structure should look like this:
      ncs
       |___ .west
       |___ mcuboot
       |___ nrf
       |___ nrfxlib
       |___ zephyr


    • If you want to update the repositories, then you just do a:
    git pull

    In the "nrf" repo. (not nrfxlib repo as shown in your screenshot)

    and follow that up with a:

    west update 

    To update all the repoes. That's kind of the neat thing with the west tool.

    So it should look like this:


    That the other repoes stays in a HEAD detached state is expected behavior and you do not need to change those.

    Best Regards,

    Martin L.

  • Yes, now Ive done everything on the list, I worked so far, however when I set up samples to build in SES 4.14 and 4.16 I get the error that the EMproject is not valid. and when I tried to build in command prompter is says Configuring incomplete.
    The samples worked on friday to build on the prompter.  It worked fine on friday, I had a ticket about mqtt_simple sample error, but now its closed, cause it got fixed. but after west update on saturday, nothing is working on the new repo, only v0.3.0 to upload.

    even done

    set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    set GNUARMEMB_TOOLCHAIN_PATH=c:\gnuarmemb











  • Hi Henning,

    We are aware that SES does not work with the master-branch, and we are working on the fix so a new version should be released soon.

    In the meantime I would recommend you to build via the command line as instructed here.

    Note you need to add the "non-secure" for the application:

    cmake -GNinja -DBOARD=nrf9160_pca10090ns ..

Reply Children
Related