Overlay file not included in the build

I am working on new project setup. I have copied a sample blinky project from nRF connect SDK(C:\ncs\v2.7.0\zephyr\samples\basic\blinky) and board I selected in Build configuration is nrf52840dk/nr52840. I am trying to make use of the overlay file through which I can change the pin configuration of LED1 from P0.14 to P0.16. For that I have tried multiple ways for including the overlay file in the build

1) Placed the overlay file(nrf52840dk_nrf52840.overlay) in the projects root directory

2) Placing that file in Zephyr boards directory(C:\ncs\v2.7.0\zephyr\boards\nordic\nrf52840dk)

3) adding the file through CMakeLists.txt(by adding  set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_SOURCE_DIR}/nrf52840dk_nrf52840.overlay and set(DTC_OVERLAY_FILE "nrf52840dk_nrf52840.overlay")

I am seeing the zephyr.dts file and nothing was changing. Please let me know how I can solve this.

Talking the mind: It feels like the nRF connect SDK is so much complex that it feels like a nightmare even though we take advantage of the training courses, chat gpt,documentations?

Parents Reply
  • I am not able to reproduce this issue using the latest version of the extension (v2024.9.5 on extension pack, and v2024.11.22 on nRF Connect for VS Code).

    Can you please specify what version of the extension pack you are using, what SDK version, and toolchain version? And also, please specify the name and location of your .overlay file, and also please copy and upload your entire build log, so that I can try to reproduce the issue that you are seeing. 

    Best regards,

    Edvin

Children
Related