So close to working, but I keep getting the following error when I try to install the blinky application "Access protection is enabled, can't read device version." I have two NRF53 DK boards and it does the same thing on both, not sure why
@wsniot22 години тому
Strange. Had newer problems with access protection. Did you maybe flash a programm where the FLAGS for access protection are set? You can try to setting the access protection to disable with an ERASEALL. See also: developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/security/ap_protect.html
@violinsheetmusicblog6 годин тому
@@wsniot I figured it out. In addition to running eraseall and recover, I had the wrong board configuration selected and I finally found the right one! All works now, thanks!
@raniaamara67152 дні тому
hi I am using nrf52840dk- nrf52840 board to interface the IMU Sensor lsm6dsox using I2C using nrf connect sdk for vs code. But I am facing error: i'm using the code in ncs/samples/sensor/lsm6dso here is prj.conf: CONFIG_STDOUT_CONSOLE=y CONFIG_I2C=y CONFIG_SENSOR=y CONFIG_CBPRINTF_FP_SUPPORT=y CONFIG_LSM6DSO_TRIGGER_GLOBAL_THREAD=y CONFIG_LSM6DSO=y here is thr overlay file: &pinctrl { i2c0_default: i2c0_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; bias-pull-up; }; }; i2c0_sleep: i2c0_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 26)>, <NRF_PSEL(TWIM_SCL, 0, 27)>; low-power-enable; }; }; }; &i2c0 { compatible = "nordic,nrf-twi"; status = "okay"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; label = "I2C_0"; clock-frequency = <I2C_BITRATE_STANDARD>; lsm6dso@6a { compatible = "st,lsm6dso"; reg = <0x6a>; }; }; the probleme is when i flash my code this the output : *** Booting nRF Connect SDK v2.5.2 *** Testing LSM6DSO sensor in trigger mode. Could not set sensor type and channel can you please help me
@wsniot2 дні тому
I dont have an lsm6dso sensor, so i cannot test it. So you dont get an error warning? Can be also connection problem or a faulty sensor. You should check the I2C connection if the sensor response. If you dont have a i2c capture device try to communicate with the sensor directly.
@adrianw756 днів тому
I followed this exactly, but the command "commissioner joiner add * JO1NME" returns with Error 7: InvalidArgs
@rutujapatil10086 днів тому
It's really helpful! Can you please make videos related to MCUBoot on nRF Board?
@Nurof3n_19 днів тому
thanks for taking the time to create these
@alishakerian117322 дні тому
hello thank you for nice video, Can you make one for GATT client or how to read data from a periphral device? thank you
@abelashenafi629125 днів тому
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
@wsniot24 дні тому
Thank you for the positive feedback.
@SamuelKodi-hs4rkМісяць тому
Only discussed the host layer ignoring the controller layer😢
@user-yb9yr2wu8vМісяць тому
英文不好, 能否配上字幕???????
@user-yb9yr2wu8vМісяць тому
讲的很好, 希望多讲点,新手入门的, 毕竟zephyr 对于新手来说,学习难度太大
@saanumaurya6019Місяць тому
from where i get this example code
@user-yb9yr2wu8vМісяць тому
能不能配上中文字幕?
@user-rb2dr5pt6jМісяць тому
I really really appreciate your tutorial. It was the only thing I found online that was of high quality for this lil board!! Your video is also super well annotated. As someone who is trying to get into embedded stuff, this has helped tremendously
@ammarq0Місяць тому
You are a phenomenal instructor, you make things effortlessly understandable! I always feel more confident engaging with these materials after watching your videos!
@xThirdOpsxМісяць тому
Thanks for putting this together.
@isd-oj4zrМісяць тому
I need to configure BMI323 on i2c bus in my custom board
@a_man5747Місяць тому
Hi sir, I need your help to configure BMA400 with Zypher OS.
@wsniotМісяць тому
I didnt work with the BMA400 yet. The data sheet is very comprehensive and the communication workflow looks similar to the BNO055. Where you have difficulties?
@user-gj1ru2lx4n2 місяці тому
Great Video for Matter instruction!Thank you !!
@rgruberski2 місяці тому
Hi! This video is fantastic! Would you share the code described in the video or some link to the repository? Many thanks for considering my request.
@hjw93472 місяці тому
Thank you for posting this helpful guide. Looking forward to getting stuck into the follow up videos!. Thanks!
@Baltrum23072 місяці тому
Thanks for your informative Video! Does the CCS detect VOC and calculate an CO2 equivalent? From my understanding VOC don’t include CO2, or am I wrong there? Greetings :)
@wsniot2 місяці тому
The CCS is a MOX-sensor which react to changes in electrical conductivity caused by the presence of volatile organic compounds. CO2 is not a VOC. Normally with other factors MOX-sensors can estimate the CO2 value (eCO2), but from my experience the estimation is not good and with the CS811 we got the same graph for CO2 like for VOC when we measure over a longer periode. So it seems they use here only a factor for estimation.
@Baltrum23072 місяці тому
Thanks again for that fast response and your understandable answer! My goal is actually to monitor VOC values, because I was monitoring high levels of VOC with another smarthkme device. Do you have any data on how reliable the CCS can detect VOCs? (I know that VOC value is really not so meaningful because you can’t say which gas exactly is detected. But I wanted to verify whether there is really a high VOC pollution in my rooms)
@wsniot2 місяці тому
@@Baltrum2307 The VOC value itself isn't really meaningful, but it's good enough for a relative comparison. Measure the VOC value in a non-contaminated place and compare it with your room. The concentration is usually higher at the point of origin, for example the floor covering, wall or sofa, wherever the VOCs come from. And which VOC it is cannot be determined with the CSS811.
@user-kh3xu8uv2d2 місяці тому
Hi sir, I'm new in thread protocol, may I ask if it is possible to replace the nRF52840 Developerkit to nRF52840 dongle? Then I can use two dongles to do same way as you did in video. Thank you!
@wsniot2 місяці тому
Yes, its possible. Bit of course the flashing of the firmware you have to make manually with the programmer app.
@user-kh3xu8uv2d2 місяці тому
@@wsniot Got it! Thank you for your quick answer! For flash part, so I just need to follow your way (build dongle firmware as RCP part in your video) to flash my dongle, final step to select ot-cli-ftd instead of ot-rcp, am I correct? Thank you!
@wsniot2 місяці тому
@@user-kh3xu8uv2d You can flash the compiled hex-file with the programmer over the bootloader. Of course dont forget to use the build-file for the usb dongle instead the dk-file.
@cozmo44522 місяці тому
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
@isd-oj4zr2 місяці тому
what if the board's name is not in the list? my board has BMD340 and I chose ubx_bmd340eval_nrf52840 as my board, but I am not getting any output
@wsniot2 місяці тому
The ubx_bmd340eval_nrf52840 has a atmel chips as j-link and usb-uart-bridge on board. If you use only a BMD340 it has actual only the nrf52840 and a few basic elements for supplying the SoC with power, oscillators and rf components. Maybe you can try using a usb dongle version works like the nrf52840-usb. The dongle will work as CDC-USB device. Or just simply connect an uart-usb-bridge to your BMD340.
@Steveshp13 місяці тому
Your book is not sold in Korea, so I purchased it from Amazon in the US. I'm looking forward to it.
@wsniot3 місяці тому
Thanks, I hope it gives you a lot new insights.
@roysigurdkarlsbakk38423 місяці тому
I got some SCD40 from china and they work, ish, but I want to create something that is meant to be used inside and having to take it outside or into a somewhat controlled atmosphere once a week, won't do. So, I tried to turn off autocalibration and rather do a forced calibration instead. This works, ish, but with the standard probe time of every four seconds, the measured rate of co2 rises quickly over a few days. So I tried to enable power saving, reducing the probe time down to every 30 seconds. I generally probe this every minute, so not an issue. This reversed the problem, by drifting downwards instead of upwards and after they reached zero, they now crash if I try to forcely calibrate them. Have you seen any of this or do you have any idea if it's possible somehow to find a co2 detector that can last for some time without having to be recalibrated all the time? I know such things exist, you can get them in shops, but I have no idea what they use internally. Thanks for the good work! roy
@wsniot3 місяці тому
But to use it inside under most conditions is normally not a problem as long there is at least once a week anykind of ventilation and no person or animal inside. As I know the most other CO2 sensors are not deliver good absolut values. Calibration is difficult. A lot cheap CO2 detection systems using an analog sensor and comparing just relative values. For fire detection for example you will have a high increase in a short time. Actually I dont know what they use in more modern air quality devices but I guess they also expect that the device is at least once in a specific time period exposed to the minimum CO2 value from around 400 ppm.
@michaeldalby19713 місяці тому
Great Video Markus - Love your pace and explanations... it really helps to break down those barriers into learning a new subject
@michaeldalby19713 місяці тому
Hi Markus, I have a question if I may? I have a BL653 demo kit (based on an NRF52840). I tried to use pin 0.19 as a general I/O pin (for your led blinking example), but I think it is already defined to be used for UART1 in the main device tree. I am using UART1 in my project, but I only need the RX & TX lines (I do not require Hardware flow control, so 0.19 & 0.21 can be freed up for other things). If I look at the device tree it looks like RTS (pin 0.19 ) and CTS (pin 0.21) are already defined as part of the ‘&pinctrl’ declaration &pinctrl { uart1_default:uart1_default { group1 { psels = <NRF_PSEL(UART_TX,0, 17)>, <NRF_PSEL(UART_RX,0, 20)>, <NRF_PSEL(UART_RTS,0, 19)>, <NRF_PSEL(UART_CTS,0, 21)>; }; }; }; How do I free up these two pins (and still keep the RX/TX functionality for UART1) by modifying the Device Tree Overlay ? Best regards Michael
@aokerem3 місяці тому
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.
@wsniot3 місяці тому
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.
@michaeldalby19713 місяці тому
Great video - very useful
@user-vl2gz6oz8x3 місяці тому
Hi Markus, do you plan on making a tutorial for SED on thread? That would be very helpful!!
@michaeldalby19713 місяці тому
Hi Markus, great video (very explanatory). You mentioned (@10:30) that for the 'gpio_add_callback' you can add multiple call back functions... is this done by adding further 'gpio_add_callback' statements to the same port? Please can you expand your explanation?
@wsniot3 місяці тому
Hi, with gpio_init_callback you just initialize a gpio_callback structure (cb-function, pinnr) . With gpio_add_callback you add this structure associated with the GPIO-port (driver) in this case GPIO0. For another button on the same port you can add another gpio_callback structure. To activate the specific interrupt and pin you call than gpio_pin_interrupt_configure_dt which is actually the same as gpio_pin_interrupt_configure(port, pin, flags).
@rutujapatil10083 місяці тому
Hello Sir, I am getting message 'Device not found' while flashing the program. Please give some suggestions.
@wsniot3 місяці тому
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?
@rutujapatil10083 місяці тому
@@wsniot It is not showing connected device in device manager. Shall I need to do any extra settings on my Windows PC?
@wsniot3 місяці тому
@@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.
@rutujapatil10083 місяці тому
@@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:)
@isaiahchiraira48363 місяці тому
this is dope
@user-vl2gz6oz8x3 місяці тому
Thank you so much for these videos! Can you make one on SED with connect SDK?
@nyeleskettes3 місяці тому
I can understand and enjoy a tool that generates a device configuration/init C file for GPIO init but let me be and to hell with proprietary tools that are added to the build chain and make some "magic" that no one can reuse later outside this steaming pile of unique framework.
@user-no7wy1xv6n4 місяці тому
Great video, nothing to ask but just to give compliments. It will be nice to have also video for programming nrf device in slave mode, because it sometimes work as co-processor for Bluetooth with stronger application processors. Nordic examples seems that have quite a lot of problems to make it working.
@YousufAlam-jx4qd4 місяці тому
Hello sir, can I used deep sleep features in ble connectable device?
@michaeldalby19714 місяці тому
great Video - I didn't realise there were so many different ways to blink an LED. So am I thinking that for portability (to change from one processor to another) you are better off using the Device Tree as a reference method?
@wsniot4 місяці тому
You are right. Mostly it is better to use the Device Tree for accessing hardware components. The other methods are more for understanding what is actually happening. And in some cases, it may be better to access hardware directly for efficiency reasons or because you want a specific behaviour what a driver is not supporting. But for LEDs you should mostly better use the Device Tree.
@michaeldalby19714 місяці тому
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
@wsniot4 місяці тому
You are welcome. Thank you for the positive feedback.
@monobrezel26474 місяці тому
thanks for clear tutorial! Do you have or plan to create a video for custom boards ? I would be interested on hardware setup . For example how to flash board via SDIO and DK plus VS Code
@wsniot4 місяці тому
Thank you for the positive feedback. I will see, at the moment I have no plans for a video for a custom board since I work on other projects and I dont know, what coming next.
@monobrezel26474 місяці тому
@@wsniot cool. Currently building my own board , just wanted to know how to do that. Was not able to find an example , only available with old toolchain
@wsniot4 місяці тому
@@monobrezel2647 Did you check this video: ukposts.info/have/v-deo/jo-VioGejoF6rYE.html
@HomoSapiensMember4 місяці тому
was banging my head on the table over the 'connected devices' not showing my xiao ble :'(
@wsniot4 місяці тому
I hope you had enough aspirin😉.
@MrIgorek1234 місяці тому
so it's normal that this board is not visible in 'connected devices' table?
@wsniot4 місяці тому
@@MrIgorek123 Yes. This device has no j-link programmer/debugger integrated. It has a bootloader for transfering the firmware like using a usb-flash stick. Otherwise the USB acts only as USB-UART-communication, means you can use a COM-Port for interchanging data with the MCU.
@USRMBMN14 місяці тому
I’ve been looking for a deep-dive like this for a while now. Thank you for putting together such a great and thorough video!
@wsniot4 місяці тому
Thank you for the positive feedback.
@lucamoioli34244 місяці тому
Very interesting board. I am comfortable with ArduinoIDE, but I would like to implement also Ant connectivity, so I think I need to use nrf5-sdk. I'm a bit confused on which ide and compiler I should use. I mean, Segger , IAR, nrf connect... which is better?
@wsniot4 місяці тому
The compiler is anyway mostly GNU-ARM-compiler. I think IAR has its own one, but can be used with the GNU-compiler too. But I would stick with the GNU-ARM-compiler. It is the most popular compiler. With the IDE is up to you what you like, but Nordic goes more and more to VSCode only and it is the most used and a quiete powerful IDE and also free. IAR Workbench is quiete expensive.
@lucamoioli34244 місяці тому
@@wsniot understand.. thank you a lot. I will continue following your amazing job
@sadiporter29664 місяці тому
do you not have a video comparing the transfer speeds and power consumption of the different wireless standards?
@karthic44045 місяців тому
Can you make a video for adc and pwm interrupt and gpio input
@MarkKipping-rr5md5 місяців тому
Hello Markus, thank you very much for your videos. Your calm way of explaining the meaning of certain instructions and how to use them works perfect for me. I am interested in BLE Firmware Over The Air (FOTA). Could you please make a video on that subject, based on a simple peripheral?
@alexheslop29175 місяців тому
Hey, could you do a video on the nRF RTC in v2.4.2? The documentation around it is a little unclear for configuration. Thanks for all the work you've put into these videos!!
@isorport325 місяців тому
How to create a project if I have my own nrf52832 or nrf52840 board with its own wiring and hardware configuration?
@wsniot5 місяців тому
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
@olegbesperstov70745 місяців тому
Thanks a lot for such a deep and scientifically based explanation of the different wireless protocols! I was really disappointed with the range of the Zigbee net. I found that in my house Zigbee cant overcome one big wall, when even Bluetooth working no problem. Now I am looking for adding external 2.4 antennas to my ZigBee Tuya devices and see if it would help.