How to use timer for v2.6.99-cs1

hello,

I just downloaded visual studio code and followed the tutorial to setup everything : https://www.youtube.com/watch?v=EAJdOqsL9m8&list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl

i was able to run the blinky project.

i tried to start a new project with timer example to understand how the timer functions works, but both of the available project won't compile.



i got this error :

i'm little bit confused with the SDK version number. the SDK version that i downloaded from VS code was 2.6.99-cs1 and in the internet there are other SDK version available for download, like the latest 17.1 : https://www.nordicsemi.com/Products/Development-software/nRF5-SDK/Download

Does the VS code has it own SDK ?

and the code for example for timer uses the SDK17.1 or  2.6.99 ?

All i want is to run a basic timer on the vs code.


thanks,
Haithem,

  • Hi

    I would recommend starting reading about Zephyr and timers here. Since you are new to our SDK I would strongly encourage you to go through our course NCS Fundamentals to get you familiar with our SDK and Zephyr. We also have additional courses on DevAcademy do help you get started. 

    I tested the timer sample and it built out of the box for me. Which board did you select under build configuration? In general you can ignore the problem tab in VScode as it does not provide any meaningful information when using NCS. 

    The nRF Connect SDK (NCS) and the nRF5 SDK are both software development kits provided by Nordic Semiconductor for their wireless communication technology products. However, they have some key differences:
    1. Development Status: The nRF5 SDK is in maintenance mode, meaning it will mainly receive bug fixes and upkeep, but no new features will be added to it. On the other hand, the NCS is under active development and is where new features will be added. This makes NCS a better choice for new projects or for devices that require continual support in the coming years 
    2. Underlying Technology: The NCS uses the Zephyr project, an open-source real-time operating system (RTOS), while the nRF5 SDK does not. This is one of the biggest differences between the two SDKs.

    In short you should be using NCS. The latest release is NCS 2.6.1 which was released a few weeks ago. From the looks of it, you are using the upstream release of NCS which is not recommend for development, I would suggest changing to the mentioned 2.6.1

    Regards

    Runar

Related