<?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>MCUXpresso IDE中的主题 Re: Can't determine processor when building headless</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/1316757#M7216</link>
    <description>&lt;P&gt;I know this is an old thread, but this seems to be the same kind of issue that &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/23694"&gt;@mukelarvin&lt;/a&gt; ran into. If you set MCUXPRESSOIDE_SDK_INSTALL to point to your SDK install directory, the problem should go away, as per this forum post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-with-headless-build-on-Jenkins-SDK-location-and-Linker/m-p/1021712" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-with-headless-build-on-Jenkins-SDK-location-and-Linker/m-p/1021712&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 13:47:05 GMT</pubDate>
    <dc:creator>np</dc:creator>
    <dc:date>2021-08-02T13:47:05Z</dc:date>
    <item>
      <title>Can't determine processor when building headless</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/731174#M1322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I am using MCUXpresso IDE, version v10.1.0 [Build 589] [2017-11-14] with an MIMXRT1050-EVK SDK, version&amp;nbsp; &lt;SPAN class=""&gt;2.3.0&lt;/SPAN&gt; (2017-11-16).&amp;nbsp; I am attempting to run the IDE in headless mode via a Gitlab CI job but I am encountering the following error (!MESSAGE Unable to find part support for NXP MIMXRT1052xxxxx in project fennec_meterboard Resetting to generic part for core cm7):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;!SESSION 2017-12-18 10:17:47.016 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_141
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
Framework arguments:&amp;nbsp; -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import /home/gitlab-runner/builds/4c8286cc/0/firmware//fennec-meterboard -build fennec_meterboard
Command-line arguments:&amp;nbsp; -os linux -ws gtk -arch x86_64 -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import /home/gitlab-runner/builds/4c8286cc/0/firmware//fennec-meterboard -data /tmp/mcuxpresso-ci-workspace -build fennec_meterboard

!ENTRY com.nxp.mcuxpresso.core.datamodels 1 0 2017-12-18 10:17:49.550
!MESSAGE Recreating part support. No part support available.

!ENTRY com.crt.log 1 0 2017-12-18 10:17:49.593
!MESSAGE Unable to find part support for NXP MIMXRT1052xxxxx in project fennec_meterboard Resetting to generic part for core cm7

!ENTRY com.crt.log 4 -1 2017-12-18 10:17:50.682
!MESSAGE Unable to find part support for NXP MIMXRT1052xxxxx in project fennec_meterboard Resetting to generic part for core cm7
!STACK 0
java.lang.Exception: java.lang.Exception: Unable to find part support for NXP MIMXRT1052xxxxx in project fennec_meterboard Resetting to generic part for core cm7
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.utils.general.Reporter.log(Reporter.java:603)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.nxp.mcuxpresso.core.datamodels.providers.SDKManifestProvider$4.run(SDKManifestProvider.java:721)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: Unable to find part support for NXP MIMXRT1052xxxxx in project fennec_meterboard Resetting to generic part for core cm7
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfig.initFromString(TargetConfig.java:1351)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfig.init(TargetConfig.java:1240)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfig.&amp;lt;init&amp;gt;(TargetConfig.java:679)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfig.loadTargetConfig(TargetConfig.java:365)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfigDatabase.load(TargetConfigDatabase.java:73)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.crt.config.database.TargetConfigDatabase.findTargetConfig(TargetConfigDatabase.java:136)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.nxp.mcuxpresso.core.datamodels.providers.SDKManifestProvider$4.run(SDKManifestProvider.java:690)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;... 1 more‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that when run in headless mode that the IDE is not able to determine the processor type and I assume this is because it can't find the appropriate SDK.&amp;nbsp; There is a CLI option for the config tools called '-SDKpath' but it is not accepted by MCUXpresso.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following build script, similar to that suggested in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/388962" rel="nofollow noopener noreferrer" target="_blank"&gt;Building Projects From The Command Line&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#!/bin/bash

TOOLCHAIN_PATH=/usr/local/mcuxpressoide-10.1.0_589/ide/bin/
IDE=/usr/local/mcuxpressoide-10.1.0_589/ide/mcuxpressoide
MCUXPRESSO_WORKSPACE=/home/USER_NAME/Documents/MCUXpresso_10.1.0_589/workspace-nxp/
SDK_PATH=/home/USER_NAME/mcuxpresso/01/SDKPackages/SDK_2.3.0_EVK-MIMXRT1050.zip
WORKER_BUILD_DIR=/home/gitlab-runner/builds/4c8286cc/0/firmware/
REPO_NAME=MY_PROJECT_NAME
PROJECT_NAME=MY_PROJECT_NAME
PATH=$PATH:$TOOLCHAIN_PATH

echo Launching Eclipse IDE
"$IDE" -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import "$WORKER_BUILD_DIR/$REPO_NAME" -data "$MCUXPRESSO_WORKSPACE" -cleanBuild "all" -build "$PROJECT_NAME"
‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a note, when building outside of the Gitlab CI process, i.e. as the user that installed MCUXpresso I can run the headless build process successfully.&amp;nbsp; I have dumped the default user environment in hopes the SDK path might be injected as an environment variable but I see no such variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one communicate the location of the SDK to MCUXpresso in headless mode? I see no CLI options for this.&lt;/P&gt;&lt;P&gt;Has anyone had success running MCUXpresso in a similar CI environment? If so please post your build script and any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 21:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/731174#M1322</guid>
      <dc:creator>ryanshuttlewort</dc:creator>
      <dc:date>2017-12-18T21:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't determine processor when building headless</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/731175#M1323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is information on SDK handling in the MCUXpresso IDE v10.1 User Guide you might like to look at (chapter 4,"SDKs and Preinstalled Part Support Overview") - though nothing explicitly about handling when carrying out headless builds like this I'm afraid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that you simply need to ensure that the SDK ZIP file is available in the part support folder &lt;SPAN style="text-decoration: underline;"&gt;for the user carrying out the build&lt;/SPAN&gt;. This will allow the IDE to find it and install the part support knowledge into the ".mcuxpressoide_packages_support" directory as it starts up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you successfully build your projects from the IDE in GUI mode when logged in as this same build user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 09:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/731175#M1323</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-12-20T09:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't determine processor when building headless</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/1316757#M7216</link>
      <description>&lt;P&gt;I know this is an old thread, but this seems to be the same kind of issue that &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/23694"&gt;@mukelarvin&lt;/a&gt; ran into. If you set MCUXPRESSOIDE_SDK_INSTALL to point to your SDK install directory, the problem should go away, as per this forum post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-with-headless-build-on-Jenkins-SDK-location-and-Linker/m-p/1021712" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-IDE/Trouble-with-headless-build-on-Jenkins-SDK-location-and-Linker/m-p/1021712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 13:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Can-t-determine-processor-when-building-headless/m-p/1316757#M7216</guid>
      <dc:creator>np</dc:creator>
      <dc:date>2021-08-02T13:47:05Z</dc:date>
    </item>
  </channel>
</rss>

