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,

    As advised, I downloaded the solution zip file for this exercise 1 Lesson 5 (fund_less5_exer1_solution.zip) and I did extract it in the directory: myapps\fund_less5_exer1.

    I then used the option "+Add an existing application" to add this application folder to my current workspace in VS code.

    I then tried to build an application for this solution but immediately the following warning/error message appeared at the bottom of the screen, as can be seen on the attached screnshot_13-July-2022: "The terminal process terminated with the exit code:2". And just above that, another error message in red: "west: error: argument <command>: invalid choice..."

    Regards,

    JM

    screenshot_13-July-2022

    screenshot_13-July-2022.docx

Related