Skip to content

Repo for my hands-on during nRF Connect SDK Fundamentals course

Notifications You must be signed in to change notification settings

gc0rreiab/ncs-zephyRTOS-fundamentals

Repository files navigation

nRFConnectSDK ZephyrRTOS Fundamentals

Nordic Semiconductor has deprecated the old nRF5 SDK and now all the new features are developed for their new SDK called nRF Connect which is based on Zephyr RTOS: an open-source real-time operating system for connected and resource-constrained embedded devices. This repository is for my hands-on during the nRF Connect SDK Fundamentals course, which can be found here.

SDK version and hardware used during the course

During lesson 6 different sensors from those suggested in the course were used:

Build and flash Instructions

You have to use nRF Connect for VS Code extension or to use the west tool, which is part of the Zephyr RTOS build system:

Using nRF Connect for VS Code extension

  1. Add or open an existing application in the nRF Connect for VS Code extension.

  2. Add a build configuration and choose the correct board to ensure the correct device-tree files are used. Then click the build option.

  3. Connect your board and flash the application by clicking the flash button if you are using the nRF Connect for VS Code extension.

Using west tool

  1. Locate your application path.

  2. Build your application using the following command:

     west build --build-dir <custom_build_directory> -b <board_name> <path_to_your_project> --pristine
    
    • build-dir flag: to specify a custom build directory. If you don't which to specify a custom build directory for the build output you can ommit this flag.
    • b flag: to specify board you are using. In this course I used nRF52840DK so replace <board_name> with nrf52840dk_nrf52840. Your can find more details about board names here.
    • pristine flag: use the pristine build option whenever you have made changes to your input files (as opposed to application/source code files), such as the prj.conf, to make sure that these changes are included in the new build. If you are only making changes to your source code then you can just use the regular non-pristine build option and ommit this flag.
  3. Flash your application using the following command:

     west flash -d <build-path> --erase
    
    • erase flag: this command clears the full flash memory before programming. To erase only the areas of flash memory that are required for programming the new application you have to ommit this flag. With such approach, the old data in other areas will be retained.

More info:

About

Repo for my hands-on during nRF Connect SDK Fundamentals course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published