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
  • Hello, 

    Further to the activities described in my previous message that I sent about 25 min ago, I have also followed these steps, as suggested by you:

    1. Press Ctrl+ (comma) which will take you to the settings page.

    2. type in "error squiggles" in the search bar.

    3. There are 2 sections in this - User, Workspace.

    In the User section, under 'Error Squiggles' , select " EnabledIfIncludesResolve "

    In the Workspace section, under 'Error Squiggles' , select " Disabled".

    However, when I tied to build an application , the same error message "ninja: build stopped: subcommand failed. Fatal Error."  appeared again , as shown in the attached screenshot entitled: "Build stopped again due to Fatal Error 12-July-2022-PM".

    Regards,

    JM

    Build stopped again due to Fatal Error

    Buid stopped again due to Fatal Error 12-July-2022-PM.docx

Reply
  • Hello, 

    Further to the activities described in my previous message that I sent about 25 min ago, I have also followed these steps, as suggested by you:

    1. Press Ctrl+ (comma) which will take you to the settings page.

    2. type in "error squiggles" in the search bar.

    3. There are 2 sections in this - User, Workspace.

    In the User section, under 'Error Squiggles' , select " EnabledIfIncludesResolve "

    In the Workspace section, under 'Error Squiggles' , select " Disabled".

    However, when I tied to build an application , the same error message "ninja: build stopped: subcommand failed. Fatal Error."  appeared again , as shown in the attached screenshot entitled: "Build stopped again due to Fatal Error 12-July-2022-PM".

    Regards,

    JM

    Build stopped again due to Fatal Error

    Buid stopped again due to Fatal Error 12-July-2022-PM.docx

Children
No Data
Related