Hello,
We are trying to automatize build with Smartsnippets on Windows to integrate it into our test suite.
Here the command line we use:
C:\DiaSemi\SmartSnippetsStudio\CDT\SmartSnippets_Studio.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data %userProfile%\workspace_SmartSnippets_Studio_CLI -cleanBuild all
It results in an error window containing this message:
Java was started but returned exit code=1
-Djava.class.path=C:\DiaSemi\SmartSnippetsStudio\CDT\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os win32
-ws win32
-arch x86
-launcher
C:\DiaSemi\SmartSnippetsStudio\CDT\SmartSnippets_Studio.exe
-name SmartSnippets_Studio
--launcher.library
C:\DiaSemi\SmartSnippetsStudio\CDT\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.300.v20150602-1417\eclipse_1611.dll
-startup
C:\DiaSemi\SmartSnippetsStudio\CDT\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.overrideVmargs -startup
plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-pluginCustomization
C:/DiaSemi/SmartSnippetsStudio/CDT/plugin_customization.ini
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-data C:\Users\********\workspace_SmartSnippets_Studio_CLI
-cleanBuild all
-vm C:/DiaSemi/SmartSnippetsStudio/jre/bin\client\jvm.dll
-vmargs
-Djava.class.path=C:\DiaSemi\SmartSnippetsStudio\CDT\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
Is there a way to build a firmware with a script?
Thanks
Thomas
Keywords:
Device:
Hi tcubizolle,
Thanks for your question online. The SmartSnippets Studio (SST) is based on the Eclipse, thus it supports headless compilation. If the is installed (latest version is recommend – v1.6.3), you can build the project via a command line, so you can do it by any script too.
For the Windows OS, you should navigate to the installation folder
C:\DiaSemi\SmartSnippetsStudio\CDT (the installation path might be different in your case, so please navigate to the correct one)
And execute the following command (ble_adv project is for you reference) :
Extra information regarding the headless build with Eclipse can be found here: https://gnu-mcu-eclipse.github.io/advanced/headless-builds/
The command line parameters can be adjusted according to your requirement, environment and use case.
Thanks, PM_Dialog
Thanks for your feedback,
About the latest version of SST, on the DA14681 page, it's the V1.6.3 (https://www.dialog-semiconductor.com/products/connectivity/bluetooth-low-energy/smartbond-da14680-and-da14681).
Is the DA14681 compatible with SST v2.0.14?
Hi tcubizolle,
Apologies – I thought that it was DA1469x, that why I mentioned v2.0.14.
For the DA1468x product family, the SSS v1.6.3 should be used.
I’ll modify my comment with the correct version.
Thanks, PM_Dialog
With your help, we succeed to build with a script.
Thanks
Hi tcubizolle,
Thanks for the update and glad that you are able to build the project via a script. If you have any follow up questions, please raise a new forum thread.
Thanks, PM_Dialog