<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Command-line execution of KDS in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400413#M2647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to build both the debug and release configurations with the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; c:\Freescale\KDS_3.0.0\eclipse\eclipsec.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild&amp;nbsp; -import C:\Freescale\KSDK_1.2.0\lib\ksdk_freertos_lib\kds\K64F12 -cleanBuild all -data workspace.headless --launcher.ini c:\Freescale\KDS_3.0.0\eclipse\kinetis-design-studio.ini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few notable additions to the command you're using:&lt;/P&gt;&lt;P&gt;1/ Passing --launcher.ini kinetis-design-studio.ini ensures that eclipsec.exe behaves more like kinetis-design-studio.exe. In my case I need this to find the correct JRE.&lt;/P&gt;&lt;P&gt;2/ Passing -import. This isn't necessary if you've already used kinetis-design-studio to setup the workspace and import projects, but I started with a non-existent workspace.&lt;/P&gt;&lt;P&gt;3/ Using -cleanBuild instead of -build, ensures I'm starting from a clean state, although I'd expect -build to work fine too.&lt;/P&gt;&lt;P&gt;4/ Passing --launcher.suppressErrors, which is useful for unattended builds (&lt;A href="http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html" title="http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html"&gt;Help - Eclipse Platform&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, there is an overhead attached to launching Eclipse, and some other caveats when dealing with KSDK projects that have dependencies on other projects. The KSDK also provides a cmake build system, which you can find in the armgcc directories. I haven't used it, but perhaps its of interest in your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 14:26:45 GMT</pubDate>
    <dc:creator>joeseymour</dc:creator>
    <dc:date>2015-05-29T14:26:45Z</dc:date>
    <item>
      <title>Command-line execution of KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400410#M2644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using KDS-3.0, Win7-64&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make the KSDK libraries by a script. Then the participants on my project doesn't have to know the ins and out of KSDK building, but could just start a script and remake the wanted libraries.&lt;/P&gt;&lt;P&gt;I have used good old 'make' for a while, but the problem is that I have to open all projects first to get the makefiles generated, what I really want is to run KDS in command-line mode.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm trying to make the freertos (as an example), the project is located here:&lt;/P&gt;&lt;P&gt;...\KSDK\V_1.2.0\lib\ksdk_freertos_lib\kds\K64F12&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to some notes on the web I've tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...\KSDK\V_1.2.0\lib\ksdk_freertos_lib\kds\K64F12&amp;gt;C:\Freescale\KDS_3.0.0\eclipse\eclipsec -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -build all -data ./x&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is promising:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Building All Projects...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Building workspace&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT!! When importing the project into KDS, I see there is two targets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; debug&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; release&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the command-line run has NOT created the 'release' version.&lt;/P&gt;&lt;P&gt;My intention is to create a temporary place for a workspace ('x'), and make both versions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has input of the correct flags to eclipsec.exe ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 08:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400410#M2644</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-05-27T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line execution of KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400411#M2645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;When I open the '.log' file in the 'x' workspace I see this peculiar errormessage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !MESSAGE Product com.somniumtech.kds could not be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 08:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400411#M2645</guid>
      <dc:creator>oaf</dc:creator>
      <dc:date>2015-05-27T08:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line execution of KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400412#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried it but what documentation I could find* suggests building all configurations is the default.&lt;/P&gt;&lt;P&gt;I guess you're able to build all configurations (debug and release) when you're in the the Eclipse IDE?&lt;/P&gt;&lt;P&gt;Are there dependencies with other projecs (libs) that need to be met perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds john&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*: Documentation (not found any official documentation)&lt;/P&gt;&lt;P&gt;&lt;A href="http://gnuarmeclipse.livius.net/blog/headless-builds/" title="http://gnuarmeclipse.livius.net/blog/headless-builds/"&gt;Scriptable builds from the command line | GNU ARM Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=186847#c24" title="https://bugs.eclipse.org/bugs/show_bug.cgi?id=186847#c24"&gt;Bug 186847 – CDT internal builder does not support automated command line builds&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/tree/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HeadlessBuilder.java" rel="nofollow" style="font-size: 15px; color: #0c65a5; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;source&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 10:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400412#M2646</guid>
      <dc:creator>johnmoule</dc:creator>
      <dc:date>2015-05-29T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line execution of KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400413#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to build both the debug and release configurations with the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; c:\Freescale\KDS_3.0.0\eclipse\eclipsec.exe --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild&amp;nbsp; -import C:\Freescale\KSDK_1.2.0\lib\ksdk_freertos_lib\kds\K64F12 -cleanBuild all -data workspace.headless --launcher.ini c:\Freescale\KDS_3.0.0\eclipse\kinetis-design-studio.ini&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few notable additions to the command you're using:&lt;/P&gt;&lt;P&gt;1/ Passing --launcher.ini kinetis-design-studio.ini ensures that eclipsec.exe behaves more like kinetis-design-studio.exe. In my case I need this to find the correct JRE.&lt;/P&gt;&lt;P&gt;2/ Passing -import. This isn't necessary if you've already used kinetis-design-studio to setup the workspace and import projects, but I started with a non-existent workspace.&lt;/P&gt;&lt;P&gt;3/ Using -cleanBuild instead of -build, ensures I'm starting from a clean state, although I'd expect -build to work fine too.&lt;/P&gt;&lt;P&gt;4/ Passing --launcher.suppressErrors, which is useful for unattended builds (&lt;A href="http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html" title="http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html"&gt;Help - Eclipse Platform&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, there is an overhead attached to launching Eclipse, and some other caveats when dealing with KSDK projects that have dependencies on other projects. The KSDK also provides a cmake build system, which you can find in the armgcc directories. I haven't used it, but perhaps its of interest in your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 14:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/400413#M2647</guid>
      <dc:creator>joeseymour</dc:creator>
      <dc:date>2015-05-29T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line execution of KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/1250654#M10184</link>
      <description>&lt;P&gt;Digging this up from a few years later...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying this flow inside a docker container&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kinetis-design-studio \&lt;BR /&gt;--launcher.ini kinetis-design-studio.ini \&lt;BR /&gt;--launcher.suppressErrors \&lt;BR /&gt;-noSplash \&lt;BR /&gt;-data /tmp/wsp \&lt;BR /&gt;-application org.eclipse.cdt.managedbuilder.core.headlessbuild \&lt;BR /&gt;-import $PROJECT_DIR&lt;/P&gt;&lt;P&gt;printf "\n\n---------------------------------------------------------------------\n\n"&lt;/P&gt;&lt;P&gt;kinetis-design-studio \&lt;BR /&gt;-noSplash \&lt;BR /&gt;-data /tmp/wsp \&lt;BR /&gt;-application com.freescale.processorexpert.core.PExApplication -generateAll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;outside of the container, i get a successful build. inside the container i get&amp;nbsp;&lt;/P&gt;&lt;P&gt;!SESSION 2021-03-23 17:27:22.844 -----------------------------------------------&lt;BR /&gt;eclipse.buildId=3.2.0.201603041649&lt;BR /&gt;java.version=1.8.0_282&lt;BR /&gt;java.vendor=Private Build&lt;BR /&gt;BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US&lt;BR /&gt;Framework arguments: -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import all_cell_bms&lt;BR /&gt;Command-line arguments: -os linux -ws gtk -arch x86_64 -data /tmp/wsp -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import all_cell_bms&lt;/P&gt;&lt;P&gt;!ENTRY org.eclipse.equinox.app 0 0 2021-03-23 17:27:36.284&lt;BR /&gt;!MESSAGE Product com.somniumtech.kds could not be found.&lt;/P&gt;&lt;P&gt;!ENTRY org.eclipse.cdt.core 1 0 2021-03-23 17:27:46.223&lt;BR /&gt;!MESSAGE Indexed 'MVBms_rev1_SW' (12 sources, 84 headers) in 7.43 sec: 5,219 declarations; 16,777 references; 110 unresolved inclusions; 32 syntax errors; 866 unresolved names (3.8%)&lt;BR /&gt;!SESSION 2021-03-23 17:27:51.368 -----------------------------------------------&lt;BR /&gt;eclipse.buildId=3.2.0.201603041649&lt;BR /&gt;java.version=1.8.0_282&lt;BR /&gt;java.vendor=Private Build&lt;BR /&gt;BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US&lt;BR /&gt;Framework arguments: -application com.freescale.processorexpert.core.PExApplication -generateAll&lt;BR /&gt;Command-line arguments: -os linux -ws gtk -arch x86_64 -data /tmp/wsp -application com.freescale.processorexpert.core.PExApplication -generateAll&lt;/P&gt;&lt;P&gt;!ENTRY org.eclipse.osgi 4 0 2021-03-23 17:27:53.856&lt;BR /&gt;!MESSAGE An error occurred while automatically activating bundle com.freescale.processorexpert.core (27).&lt;BR /&gt;!STACK 0&lt;BR /&gt;org.osgi.framework.BundleException: Exception in com.processorexpert.core.PECoreActivator.start() of bundle com.freescale.processorexpert.core.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it seems like the eclipse headless build works, but i need to also generate code using processor expert and it is not working inside the docker environment. looking for a resolution if possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 18:08:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Command-line-execution-of-KDS/m-p/1250654#M10184</guid>
      <dc:creator>orenderj</dc:creator>
      <dc:date>2021-03-23T18:08:24Z</dc:date>
    </item>
  </channel>
</rss>

