This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 with Zephyr - Project version control

Hi,

Currently I am setting up my work environment. I have a simple Zephyr project running on our custom board with the nRF52840, so a modified example and a custom board folder.

Now I would like to push these changes to our git server.

What is the best way to do this? I would like to push our source code (modified example), and the zephyr/boards/ folder containing our custom board definition.

Thank you!

Parents
  • I'd recommend reading about custom board definitions. You can place them wherever you wish, and using your CMakelists.txt file tell the project where it is. I prefer this method because you can keep all of your project files outside of the zephyr directory. Then you could have a bash script to initialize Zephyr/NCS to the right version in your repo to get everything set up.

    Custom Out of Tree Boards

  • Hi ,

    Thank you for your response. I have moved the project out of the zephyr folder, which works.
    However, moving the board file out of the zephyr folder leaves me we an error. It cannot find the #included file referenced in the .dts file. That file in turn also references some files, so if possible I would like to tell the toolchain where it should look for those files, instead of manually editing those files and including them all manually in my folders.

    Is this possible?

    The problem is with #include <nordic/nrf52840_qiaa.dts>

Reply
  • Hi ,

    Thank you for your response. I have moved the project out of the zephyr folder, which works.
    However, moving the board file out of the zephyr folder leaves me we an error. It cannot find the #included file referenced in the .dts file. That file in turn also references some files, so if possible I would like to tell the toolchain where it should look for those files, instead of manually editing those files and including them all manually in my folders.

    Is this possible?

    The problem is with #include <nordic/nrf52840_qiaa.dts>

Children
Related