Zephyr and Nordic nRF Connect SDK - 01 Introduction and installation (v2.4.2)

  Переглядів 6,351

WSN & IoT

WSN & IoT

День тому

It is based on the Zephyr real-time operating system. Zephyr supports multithreading. The hardware is configured via a device tree and components are activated or deactivated via a configuration file. Internal and external resources such as I²C-bus or sensors can be controlled via drivers. The nRF connect SDK supports the network technologies OpenThread, ZigBee, BLE and Matter. Visual Studio Code can be used as a development environment. In this introductory video I explain how to install the nrf Connect SDK, compile a first example program and transfer it to a Nordic nrf52840-dk developer board.
Book (english version)
WSN & IoT (Basics, protocols and applications):
a.co/d/5yfTIuJ
ISBN-13: 979-8851358074
Book (deutsche Version)
WSN & IoT (Grundlagen, Protokolle und Anwendungen):
amzn.eu/d/hAbTgD0
ISBN-13: 979-8648512061
##Software###########
nRF Connect for Desktop:
www.nordicsemi.com/Products/D...
nRF Command Line Tools:
www.nordicsemi.com/Products/D...
Visual Studio Code:
code.visualstudio.com/download
nRF Connect SDK Documentation:
developer.nordicsemi.com/nRF_...
##Hardware###########
Developer board nRF52840-dk:
www.nordicsemi.com/Products/D...
00:00 Introduction
00:32 Overview
00:57 RTOS Zephyr
01:54 Components
02:50 Components
03:16 Software to install
03:22 nRF Command Line Tools
04:22 nRF Connect for Desktop
05:49 Toolchain Manager
06:25 Toolchain installation
07:13 Visual Studio Code installation
09:33 VS Code extensions installation
09:57 VS Code
10:54 Create blinky example application
12:07 Generate build configuration for nRF52840-dk
13:20 Flash blinky example to nRF52840-dk
14:35 Outro

КОМЕНТАРІ: 37
@Nurof3n_
@Nurof3n_ 17 днів тому
thanks for taking the time to create these
@michaeldalby1971
@michaeldalby1971 4 місяці тому
OMG, your video has helped me a lot.... In the world of Zephry there is so much information (with a lot of depreciated methods and old instruction). Your video was perfect and worked !!! Well done and thanks for sharing
@wsniot
@wsniot 4 місяці тому
You are welcome. Thank you for the positive feedback.
@abelashenafi6291
@abelashenafi6291 22 дні тому
Thanks for this amazing video. I followed your instructions step-by-step and everything works like a charm. Thank you and you just earned a new subscriber for your superb explanation and guidance. Thanks again
@wsniot
@wsniot 22 дні тому
Thank you for the positive feedback.
@TechwithHari
@TechwithHari 6 місяців тому
Thank you so much for these tutorials.. I just brought the nrf5340 dk and was really confused as to where to start.
@hjw9347
@hjw9347 2 місяці тому
Thank you for posting this helpful guide. Looking forward to getting stuck into the follow up videos!. Thanks!
@nano_user5878
@nano_user5878 6 місяців тому
thanks a lot! much needed lead!
@bits_iot
@bits_iot 5 місяців тому
Very helpful video, simple step by step, good for beginners, well done 👍👍
@wsniot
@wsniot 5 місяців тому
Thank you for the positive feedback!
@isaiahchiraira4836
@isaiahchiraira4836 3 місяці тому
this is dope
@karthic4404
@karthic4404 6 місяців тому
Can you make make full tutorial video All the peripherals like gpio,I2C ,spi , uart, timer, interrupt, ADC, dac, ble, ble mesh
@cozmo4452
@cozmo4452 2 місяці тому
Hello, when I create new application and choose a path, not matter where i choose it says (File path) already exists. Do you know the cause? Thankyou very much
@brandonmoncada1951
@brandonmoncada1951 6 місяців тому
Thank you so much for updating that old video with 1.9.1 SDK version. Do you know if there are some deprecated functions for OpenThread in 1.9.1 version? Why did you upgrade the SDK version?
@wsniot
@wsniot 6 місяців тому
For OpenThread I think not. But there were a lot of minor changes overall that didn't fit in the old video anymore. These are for example changes to the header files and the graphical interface in VS Code, especially the selection of the toolchain, the creation of projects and the graphical interface of the DeviceTree.
@brandonmoncada1951
@brandonmoncada1951 6 місяців тому
​@@wsniot Thank you so much for your reply, I asked you this because I trying to replicate the CoAP protocol with 840DK's again, but now with 2.4.2 SDK version is not working anymore, is compiling and flashing into devices but doesn't has the expected behavior. Do you might explaining to me which are those changes made for newest version? The code is the same. We cannot find out some probable solution.
@wsniot
@wsniot 6 місяців тому
@@brandonmoncada1951 I tried my CoAP example and it works the same as before. The biggest problem I had with the SDK v2.4.2 was that uart1 was disabled by default in the devicetree, otherwise my programs all ran as usual so far. What exactly is not working? Is the CLI working? Do both have the same dataset? Does sending UDP packets via the CLI work?
@aokerem
@aokerem 3 місяці тому
Well, I use nrf52832 on a my special card, which board I choose in build configuration or what can I do? I am open to your advice.
@wsniot
@wsniot 3 місяці тому
What do you mean with special card? Did you design one by your own? For programming you can use what fits to your board best as long it has a nrf52832 chip (i.e nrf52dk_nrf52832). You have to adapt probably the device tree. And of course you need an external j-link programmer or a bootloader on the nrf52832.
@isorport32
@isorport32 5 місяців тому
How to create a project if I have my own nrf52832 or nrf52840 board with its own wiring and hardware configuration?
@wsniot
@wsniot 5 місяців тому
That depends. The simplest solution is to use an existing board such as the Xiao BLE and customise the DeviceTree. Or you adding your own custom board: ukposts.info/have/v-deo/jo-VioGejoF6rYE.html
@NoumanAli
@NoumanAli 5 місяців тому
Very detailed video. Thanks for your time. Can you kindly do a video on SAADC with nRF5340-dk? I'd be very obliged to you. 😊😊
@wsniot
@wsniot 5 місяців тому
Thx for the feedback. I dont have the nRF5340-dk here, but it should work similiar like the nRF52840: ukposts.info/have/v-deo/hJObqGiArGip140.html
@NoumanAli
@NoumanAli 5 місяців тому
@@wsniot I'm having one issue though. The issue is that some of the examples work just fine when making a new application based on some example let's say blinky. But SAADC example doesn't work when I build it. It gives an error CMake Error at CMakeLists.txt:11 (GET_DEVICE_CONFIG_FILES): I tried googling it but there's only one link explaining it but I couldn't understand what to do. If you could help me out, that'd be a huge help. It seems like nRF has very poor documentation and no explanation on working examples. Could you refer me to channel or website which could help me out. And I really appreciate your reply. 😊
@NoumanAli
@NoumanAli 5 місяців тому
@@wsniot Actually I'm new to the nRF family. And it feels to me that the learning curve is too high. And very few people seem to have worked on this. I'm quite good with STM32 but to fail here with nRF. 😔
@wsniot
@wsniot 5 місяців тому
@@NoumanAli Which build did you use? With nrf5340dk_nrf5340_cpuapp compiling works fine with me. In nrf5340dk_nrf5340_cpunet near all is disabled as default in the devicetree.
@NoumanAli
@NoumanAli 5 місяців тому
@@wsniot if i try compiling the examples, they work fine. But when I make another project based on the given examples, then it gives the above issue.
@kaisskateouederni
@kaisskateouederni 6 місяців тому
Hello, really nice tutorial :) my device won't show in the "connected devices" view when I plug it in... By any chance do you have any idea why? would appreciate any tips ahah
@wsniot
@wsniot 6 місяців тому
Check the switches on the dk. Is the power led on? Is the J-Link driver installed? If not, try to install it manually: www.segger.com/downloads/jlink/
@AliAgha027
@AliAgha027 6 місяців тому
@@wsniot @kaisskateouederni I'm having the same problem; could you perhaps assist me?
@AliAgha027
@AliAgha027 6 місяців тому
open vs code directly rather than by using tool chain manager
@rutujapatil1008
@rutujapatil1008 3 місяці тому
Hello Sir, I am getting message 'Device not found' while flashing the program. Please give some suggestions.
@wsniot
@wsniot 3 місяці тому
Check if all the switches in the right position. Check if your device is accessable in the device manager. Do you have a JLink CDC Device as com-Port for instance?
@rutujapatil1008
@rutujapatil1008 3 місяці тому
@@wsniot It is not showing connected device in device manager. Shall I need to do any extra settings on my Windows PC?
@wsniot
@wsniot 3 місяці тому
@@rutujapatil1008 Did you check the power switch on the board? Should be set to on. And the second switch should be set to default, not to nRF ONLY. Does the power LED light? In the device manager there should be a device. If the driver is not installed properly than at least as unknown device.
@rutujapatil1008
@rutujapatil1008 3 місяці тому
@@wsniot Thanks a lot for your guidance! I was having issue with the power switch and also, with the cable. Now, I am able to flash the program:)
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Переглядів 2,6 млн
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Переглядів 23 млн
Introduction to the Zephyr RTOS
1:04:31
Nordic Semiconductor
Переглядів 43 тис.
Making Simple Windows Driver in C
7:26
Nir Lichtman
Переглядів 262 тис.
GitHub Copilot just got promoted to Captain
4:01
Fireship
Переглядів 406 тис.