nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Implementing 'Developing Bluetooth Low Energy products using nRF Connect' video on nRF5340-DK

I am working from this video:

https://webinars.nordicsemi.com/developing-bluetooth-low-energy-6

Which nRF5340-DK build configuration should I use please?

  • nrff5340dk_nrf5340_cpuapp
  • nrff5340dk_nrf5340_cpuapp_ns
  • nrff5340dk_nrf5340_cpunet

I've downloaded the source files and manually put the folders named 'bluetooth_remote' and 'bluetooth_remote_template' in my macOS workspace folder.

I add the 'bluetooth_remote_template' folder as a new application into VS Code, immediately I'm asked if I want to change from the current v1.9.0 version of the nRF Connect SDK. I assume that I should be working with the latest version, so confirm that I don't want to change. When I then open the project in Explorer and look at main.c I see the following Includes underlined with red squiggles.

main.c

#include <zephyr.h>
#include <logging/log.h>
#include <dk_buttons_and_leds.h>
#include "remote.h"

The same is true for the Includes in remote.c and remote.h:

remote.c
  
#include "remote.h"
    
remote.h
   
#include <zephyr.h>
#include <logging/log.h>
 
What do I need to do to provide the paths to these header files please?

Parents
  • Hi

    For the difference between the board types, see my explanation in this case.

    Currently, the newest version of the nRF Connect SDK is v1.9.0.
    I suggest that you use the newest version when starting new projects.
    I recommend that you use the Toolchain Manager to install the newest version.

    The red lines under the includes, it is that VS Code IntelliSense can not find these includes.
    However, the build configuration of the project might still be able to work, as these are two different systems.

    I suggest that you try to build, and if it builds fine you can ignore the red lines under includes.
    See this devzone case for some discussion on the include error. There should also be some other cases about the same type of issue  if you look around.

    Did this answer your questions?

    Regards,
    Sigurd Hellesvik

Reply
  • Hi

    For the difference between the board types, see my explanation in this case.

    Currently, the newest version of the nRF Connect SDK is v1.9.0.
    I suggest that you use the newest version when starting new projects.
    I recommend that you use the Toolchain Manager to install the newest version.

    The red lines under the includes, it is that VS Code IntelliSense can not find these includes.
    However, the build configuration of the project might still be able to work, as these are two different systems.

    I suggest that you try to build, and if it builds fine you can ignore the red lines under includes.
    See this devzone case for some discussion on the include error. There should also be some other cases about the same type of issue  if you look around.

    Did this answer your questions?

    Regards,
    Sigurd Hellesvik

Children
Related