Export projects from nRF Connect in VSC

Hi, 

How do you export your project from nRF Connect within VSC? You may have modifications you did for DTS files, prj.conf etc, that you may miss if you focus on just src folder. I couldn't find any mechanism other than taking the entire project folder, but that is a waste of space as we don't need to take the entire SDK, as it normally doesn't change.

 Thanks,

Parents
  • Hi,

    That's completely correct, you can simply zip up the folder. A Zephyr project is at minimum defined by the files prj.conf, cmakelists.txt, and source files (.c and .h) plus any other includes like devicetree overlays that you introduce. Saving these is enough, the rest of the Zephyr tree and drivers are pulled in from your install folder every time you build.

    Note that you do not need the build folder to reproduce the project, so if you want to keep your zip files small you should definitely exclude your build folder from them (and when using Git, add the build folder to your .gitignore).

    Best regards,

    Raoul Pathak

Reply
  • Hi,

    That's completely correct, you can simply zip up the folder. A Zephyr project is at minimum defined by the files prj.conf, cmakelists.txt, and source files (.c and .h) plus any other includes like devicetree overlays that you introduce. Saving these is enough, the rest of the Zephyr tree and drivers are pulled in from your install folder every time you build.

    Note that you do not need the build folder to reproduce the project, so if you want to keep your zip files small you should definitely exclude your build folder from them (and when using Git, add the build folder to your .gitignore).

    Best regards,

    Raoul Pathak

Children
No Data
Related