Questions about visual study code

I want to develop it in visual study code.
I have a few problems right now

1. The left nrf icon in the attached image continues to disappear.
Whenever it disappears, if you remove it from the extension and restart the extension, the icon reappears, but if you turn off vs code and turn it back on, it disappears again.

2 create a new application does not create when you import a sample from the module directory and create a build configuration.

It hasn't been going on for several days due to the above two problems.
Please tell me the solution to the above

I would like to ask if there is no sdk about nrf5340 or nrf7002 in keil or ses. (vs code is too inconvenient)

1.

2.

Parents
  • Hi,

    I am glad to hear 1. was resolved by re-intalling.

    Regarding issue 2, that is that this project is not stand-alone. If you look inside /CMakeLists.txt file, you will se that it includes two common folder located relative to this project (../../../common ../common). So just copying out the project will not work. You either need to copy out the related folders as well and place them in the same location, or in another location an dupdate the path, or run the sample from where it is lcoated in the SDK tree).

  • (.. /.. /.. /common .. /common) Where do I copy and paste the two common folders?

    In addition to this, common/nrfx.example.h
    common/saadc_examples_common.c
    These two files are also said not to be found, but they are in the common folder of the project you created.

  • ozoz05 said:
    (.. /.. /.. /common .. /common) Where do I copy and paste the two common folders?

    These are relative paths, so it is relative to where the project reside in the SDK. (thre and one folder down).

    ozoz05 said:
    In addition to this, common/nrfx.example.h
    common/saadc_examples_common.c
    These two files are also said not to be found, but they are in the common folder of the project you created.

    That is because of what we have discussed, the project includes files in other folders with relative pahts.

    There are several ways to solve this:

    1. Do not copy the project out, just run it from where it is. This will work out of the box and is what I recomend.
    2. Copy all the folders out and keep the relative structure. This will be messy.
    3. Copy the folders, but keep them for instance) nexts to the proejct folder, and update the project CMakeLists.txt.
    4. Copy just the files from the two common directories in to your project source code folder.

    If  you do not want to use option 1, I suggest option 4 which is clean and simple.

  • It does not work if you run the project from the SDK's current location without copying it.
    (C:\ncs\v2.7.0\modules\hal\nordic\nrfx\samples\src\nrfx_saadc\advanced_non_blocking_internal_timer)

    Below is the log when you run it.

Reply Children
No Data
Related