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.

Reply Children
  • 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.

  • Hi,

    I see the same on my end. This sample has not been updated for sysbuild yet, but it builds if you opt to not use sysbuild:

  • As you said, if you run "bulid configuration", it runs normally, but if you run build again, a build error occurs as shown in the attached image.

  • Hi,

    I see the same on my end. When you do a re-build the No sysbuild option is "forgoten" and not passed on to the west build command (so --no-sysbuild is missing if you look at the west build command in the beginning of the output when you do the build). I have reported the issue internally, but until it is fixed, I suggest you make a new build-configuration every time you need to do a pristine build (evne though I undertsand it is mor work and not ideal).

Related