DevAcademy - nRF Connect SDK Intermediate - Lesson 7 Exercise 1 - Build Issue

Hello -

I am working through the DevAcademy - nRF Connect SDK Intermediate lessons. I have reached Lesson 7 Exercise 1, found here - https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-7-device-driver-model/topic/exercise-1-13/

I am using the nRF52840DK kit for this exercise. I have also used the reference files in the "Lesson 7 Exercise 1 Solutions (l7_e1_sol)" directory to avoid any copy/paste errors and have followed the instructions as closely as possible. I am also using SDK version 2.6.2.

Despite my best efforts, I am running into a build issue related to the /drivers/sensor/custom_bme280.c file, where it is not recognizing the <zephy/> path in the #include files at the top.

Please see attached screenshot, pasted below. I do not know the appropriate file/location to edit, and have run through this exercise multiple times now to ensure I'm note doing anything wrong.

Please advise. Thank you for your support.

  • Hi - follow up on this. I just realized that the .h files called out in these #include lines don't exist in any of my /zephyr subdirectories. For example if I go to ../academy_workspace/zephyr/ there are no files in there called types.h or device.h. And if I go to ../academy_workspace/zephyr/drivers/ there is no file in there called spi.h

    It is also not clear to me which /zephyr sub-directory these #include callouts are referring, as I have the following (regardless, none include the specified .h files):

    C:\ncs\academy_workspace\zephyr\

    C:\ncs\v2.6.2\zephyr\

    C:\ncs\academy_workspace\ncs-example-application\zephyr\

Related