• Support
  • VSC : sample external_rtc - PCF85063A not found

jft7 it’s best to re-init the project especially if it’s been relocated. I’ve also fixed the issue with the application folder name in the latest version of the extension. So you no longer have to edit the west.yml file.

To re-init remove your .west folder and then run Zephyr Tools: Init Repo

I run the following steps as described in documentation (https://docs.jaredwolff.com/nrf9160-sdk-setup-windows.html)
1- create an empty directory “c:\ZephyrRepo”
2- run “Zephyr Tools: setup”
3- run “Zephyr Tools: Init Repo” with the empty directory created at step #1 and the URL “https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git

But there is a PermissionError during “Init Repo” (see bellow). I tried different location, same result.

=== Initializing in C:\ZephyrRepo
— Cloning manifest repository from https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git
Cloning into ‘C:\ZephyrRepo.west\manifest-tmp’…
remote: Enumerating objects: 889, done.
remote: Counting objects: 100% (889/889), done.
remote: Compressing objects: 100% (512/512), done.
remote: Total 889 (delta 465), reused 746 (delta 326), pack-reused 0
Receiving objects: 100% (889/889), 5.95 MiB | 1.81 MiB/s, done.
Resolving deltas: 100% (465/465), done.
Traceback (most recent call last):
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\shutil.py”, line 815, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] Accès refusé: ‘C:\ZephyrRepo\.west\manifest-tmp’ -> ‘C:\ZephyrRepo\nfed’

The error is complaining that you already have a .west file in C:\ZephyrRepo. Files with a . prefix are typically hidden. You may need to enable viewing of hidden files/folders to delete it first. Then retry the init process.

I’ll retry it here with the latest to make sure I didn’t break anything.

Hmm fix one thing and break another! Let me see what’s up with this. Getting the same error.

You may need to enable viewing of hidden files/folders to delete it first. Then retry the init process.

I always enable viewing of hidden files, and the directory was freshly created …
To be sure, I’ve just tried again, with the same error.
I am sorry to importune you with that, but I don’t find where is my mistake …

    It doesn’t look like something you’re doing. It appears to be a permissions issue. For some reason when I run the same command manually (west init) it works but when I do it through the extension, it fails. Looking into it. I’m sorry about this!

    Looks like you’ll need to roll back to 0.1.15 for now.

    I’m still trying to figure out a solution. For some reason cmd.exe is executing west with different privileges which causes it to bork. You will need to edit your west.yml once everything is initialize to pull in the RTC drivers.

    @jft7 do you have something like chocolatey or Cygwin installed? You may have to remove it from your path. I was able to get things working once I did on my end.

    C:\Zephyr>"C:\Users\Jared Wolff\.zephyrtools\env\Scripts\west.exe" init -m https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git
    === Initializing in C:\Zephyr
    --- Cloning manifest repository from https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git
    Cloning into 'C:\Zephyr\.west\manifest-tmp'...
    remote: Enumerating objects: 899, done.
    remote: Counting objects: 100% (899/899), done.
    remote: Compressing objects: 100% (521/521), done.
    remote: Total 899 (delta 472), reused 750 (delta 327), pack-reused 0
    Receiving objects: 100% (899/899), 6.71 MiB | 12.46 MiB/s, done.
    Resolving deltas: 100% (472/472), done.
    --- setting manifest.path to nfed
    === Initialized. Now run "west update" inside C:\Zephyr.

    Still working on this to confirm what it exactly is though. Stay tuned..

    Ok, with the latest version of the extension adding a .vscode/settings.json and disabling the built in Git client will fix the problem. That took a LOT longer than expected.

    {
        "git.enabled": false,
        "git.path": null,
        "git.autofetch": false
    }

    I’ll release a new version of the extension that will do this.

    I just pushed version 0.1.17 which addresses this. I hope you’re able to get going. Let me know if you need anything else jft7

    Thanks a lot !
    Everything seems to be OK : I’ve reinstalled and successfully compiled and run a few samples.
    I apologize for the delay to answer due to the time difference (we are UTC+1)

    Terms and Conditions | Privacy Policy