build project in command line

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
tcubizolle
Offline
Last seen:5 days 23 hours ago
Joined:2020-08-17 15:12
build project in command line

Hello,

我们试图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:
PM_Dialog
Offline
Last seen:1 day 23 hours ago
Staff
Joined:2018-02-08 11:03
Hi tcubizolle,

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) :

.\eclipsec.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\DA1468x_DA15xxx_SDK_1.0.14.1081\ -import "C:\DA1468x_DA15xxx_SDK_1.0.14.1081\projects\dk_apps\demos\ble_adv" -cleanBuild ble_adv/DA1469x-00-Debug_QSPI

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

tcubizolle
Offline
Last seen:5 days 23 hours ago
Joined:2020-08-17 15:12
Thanks for your feedback,

Thanks for your feedback,

About the latest version of SST, on the DA14681 page, it's the V1.6.3 (//www.wsdof.com/products/connectivity/bluetooth-low-energy/smartbond-da14680-and-da14681).

Is the DA14681 compatible with SST v2.0.14?

PM_Dialog
Offline
Last seen:1 day 23 hours ago
Staff
Joined:2018-02-08 11:03
Hi tcubizolle,

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

tcubizolle
Offline
Last seen:5 days 23 hours ago
Joined:2020-08-17 15:12
在你的帮助下,我们成功了

在你的帮助下,我们成功了build with a script.

Thanks

PM_Dialog
Offline
Last seen:1 day 23 hours ago
Staff
Joined:2018-02-08 11:03
Hi tcubizolle,

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