Problems with Exercise 1 , Lesson 5 of the DevAcademy "nRF Connect SDK fundamentals" course

Good day,

I did follow the usual steps of this an exercise, namely:

1. I did download the base exercise project contained in the zip file: fund_less5_exer1.zip (I attach a copy of this file)

2. I did extract this zip file in my exercise folder that I use with this course.

3. I followed all the steps 1 to 9.3 of this exercise but I was unable to build  the application.

The following 5 errors related to the #include statements in lines 4,5,6,7 and 10 in the src/main.c file were listed, as shown in the attached file: "Errors_10-July-2022"

line 4: #include <zephyr.h>

line5: #include <device.h>

line6: #include <devicetree.h>

line7: #include # <drivers/gpio.h>

line 10: #include <drivers/uart.h>

Upon investigation I noticed that line 3 in the CMakeLists.txt file for this exercise differs from a similar line in the CMakeLists.txt file in the previous exercises of this course, as far as the "cmake_minimum_required" is concerned.

For Lesson5_Exercise1 the line 3 of CMakeLists.txt file reads: cmake_minimum_required(VERSION 3.20.0) while for the previous exercises line 3 of the CMakeLists.txt file reads: cmake_minimum_required(VERSION 3.13.1).

Could this be the root of the problem?  If so, how to rectify it?

Regards,

JM

fund_less5_exer1.zip file

fund_less5_exer1.zip

Errors_10-July-2022

Errors_10-July-2022.docx

I am using:

nRF9160DK v1.0.1

Windows 10 Pro, version 21H2, OS build 19044.1766

nRF Connect for Desktop v.3.11.1

Toolchain Manager v.1.1.3

nRF Connect SDK v.1.8.0 with the VS Code

Parents Reply Children
  • Hello Abhijith,

    I decided to upgrade from nRF Connect SDK v1.8.0 to nRF Connect SDK v2.0.0 and this helped to resolve my problem.

    I was able to successfully build and run the exercise 1 from lesson 5 (less5_exer1) and I could toggle LED 1-3 on my development board by pressing keys 1-3 on my keyboard - but only when I was using the PuTTy serial terminal.

    When I tried using the Integrated nRF Terminal instead of PuTTy, I was only able to see the message:

    "nRF Connect SDK Fundamentals Course. Press 1-3 on your keyboard to toggle LED 1-3 on your development kit".

    But when I tried to press any of the 1-3 buttons on my keyboard, there was no toggle action on any of the LED 1-3 on my development board.

    I tried both available configurations for the nRF Terminal settings, namely:

    (i).115200 8n1 rtscts:off   and

    (ii) 115200 8n1

    but the problem was still there, i.e. no toggle action was taking place on LED 1-3.

    Can you advise how to overcome this problem?

    Regards,

    Jacek

  • Jacek Majda said:
    nRF Connect SDK Fundamentals Course. Press 1-3 on your keyboard to toggle LED 1-3 on your development kit"

    Can you tell me which lesson/Exercise you are trying? 

    Kind Regards,

    Abhijith

Related