Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Solved How git spresense project ?
-
Hello,
How can I create a clean repository for spresense project using the SDK ?
I suppose it is better to track the main folder containing the app, to allow having several apps in the futur.Is there a gitignore template ?
Is that possible to use both CLI and VSCode IDE ? It doesn't seem that the files are similar, notably the IDE doesn't have a Kconfig.
Thanks,
Romain. -
Hello again,
If all your collaborators are able to use VSCode IDE, here is a solution to git your project :
To init project
- Create a workspace with workspace wizard
- Save it, always use the
.code-workspace
to launch it - Create your app
- Add
.gitignore
*.vscode/ out/ *.depend *.built *.o *.dep
- Init repository into the workspace folder (to track all apps)
git init git add -A git commit -m "New Spresense project" git remote add origin git@gitxyz.com:user/my-new-project.git git push -u -f origin master
To clone project
- Also create workspace folder
- Save it
- Do not create apps
- Import repository into workspace folder
git init git remote add origin git@gitxyz.com:user/my-new-project.git git pull origin master
-
-
Hello, @RomainPC-0-1-1-1-1-1-1
I haven't actually tried it, but you could use git submodule or subtree.
I agree that it would be more interesting to track the folder that contains the applications, so you can create several examples.Tip:
When you have a successful application, run $make savedefconfig to save the sdk configuration of that application. A defconfig file will appear under the sdk directory and that might be worth saving too.How would you want to use both CLI and IDE?
The way they do the configuration of the SDK is slightly different and I believe to create an application in the IDE and be able to flash that with the CLI you would need to create the Kconfig file and then take a look at this part of our documentation:
https://developer.sony.com/develop/spresense/docs/sdk_set_up_en.html#_add_to_a_different_directory
(Assuming this is what you want to do)