fail to create a new Freestanding Application under NRF Connect

I am trying to create my first Freestanding Application under NRF Connect, I have SDK version 1.8.0.
As soon as I click on "Create Application" I got the error message "Application already exists".
I see that a directory with the name I have chosen for the application is created, the directory is empty.
This seems basic, what I did wrong ?

Parents
  • Same issue using visual studio code. Always attempts to copy the hello world example and fails with the error. No change if I install sdk 1.8.0. Downloaded latest versions of everything needed per the video, no change. When it errors out, it creates the folder, but its empty. I can delete the empty folder it attempts to create,  but it fails the same way every time.

  • There is nothing in C:\Nordic Apps, its empty. To me, this bug/error seems like a race condition or out of order check for file name. Why would it say it already exits if it just created the file? It should create the file, put the example project files in the just created file, then do a check.

    Steps:

    1. Created  empty folder called C:\Nordic Apps

    2. Using my file locations above, give application name random name, blink123

    3. Hit "Create Application"

    4. Application creates blink123 file in my C:\Nordic Apps folder, but it is empty.

    5. Error shown

  • SwagWalker said:
    Created  empty folder called C:\Nordic Apps

    Can you try to use a folder without the space? E.g. C:\NordicApps or C:\NCS

    I added a folder C:\Nordic Apps and added a new application to this. This would generate an empty folder, and the following output when trying to add build configuration:

    > Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\Nordic Apps\blinky <
    
    Building blinky
    west build --build-dir c:\Nordic Apps\blinky\build c:\Nordic Apps\blinky --pristine --board nrf9160dk_nrf9160_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE"
    
    ERROR: source directory Apps\blinky\build does not exist
    FATAL ERROR: refusing to proceed without --force due to above error
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.
    

Reply
  • SwagWalker said:
    Created  empty folder called C:\Nordic Apps

    Can you try to use a folder without the space? E.g. C:\NordicApps or C:\NCS

    I added a folder C:\Nordic Apps and added a new application to this. This would generate an empty folder, and the following output when trying to add build configuration:

    > Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\Nordic Apps\blinky <
    
    Building blinky
    west build --build-dir c:\Nordic Apps\blinky\build c:\Nordic Apps\blinky --pristine --board nrf9160dk_nrf9160_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE"
    
    ERROR: source directory Apps\blinky\build does not exist
    FATAL ERROR: refusing to proceed without --force due to above error
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.
    

Children
No Data
Related