-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add launch script for NXP MCUXpresso Config tools generator (#51)
* Add launch script for NXP MCUXpresso Config tools generator * clean-up launch-MCUXpressoConfigTools.bat remove left-over hard coded hello_world.cgen.yml files command line option. * Add newline to end of file in launch scripts for MCUXpresso Config Tools * Simplyfis launch sript for MCUXpresso config tools (windows-adm64) Remove for legacy project with .mex file ins same folder as .cproject and .csolution * Add MCUXpresso scripts into `goreleaser` configuration --------- Co-authored-by: Joachim Krech <[email protected]> Co-authored-by: Daniel Brondani <[email protected]>
- Loading branch information
1 parent
eeb1e9b
commit 456c7ac
Showing
7 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
scripts/MCUXpresso_Config_Tools/darwin-amd64/launch-MCUXpressoConfigTools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
# Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. | ||
|
||
echo Platform is not supported for MCUXpresso Config Tools in OpenCMSIS generator mode! | ||
exit 1 |
5 changes: 5 additions & 0 deletions
5
scripts/MCUXpresso_Config_Tools/darwin-arm64/launch-MCUXpressoConfigTools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
# Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. | ||
|
||
echo Platform is not supported for MCUXpresso Config Tools in OpenCMSIS generator mode! | ||
exit 1 |
5 changes: 5 additions & 0 deletions
5
scripts/MCUXpresso_Config_Tools/linux-amd64/launch-MCUXpressoConfigTools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
# Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. | ||
|
||
echo Platform is not supported for MCUXpresso Config Tools in OpenCMSIS generator mode! | ||
exit 1 |
5 changes: 5 additions & 0 deletions
5
scripts/MCUXpresso_Config_Tools/linux-arm64/launch-MCUXpressoConfigTools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
# Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. | ||
|
||
echo Platform is not supported for MCUXpresso Config Tools in OpenCMSIS generator mode! | ||
exit 1 |
29 changes: 29 additions & 0 deletions
29
scripts/MCUXpresso_Config_Tools/windows-amd64/launch-MCUXpressoConfigTools.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@echo off | ||
REM Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. It is supported since MCUXpresso Config Tools v16 | ||
|
||
REM path to .cbuild-gen.idx.yml file | ||
set idxFile=%1 | ||
|
||
REM Get Config Tools Location | ||
set cmd=REG QUERY "HKEY_CLASSES_ROOT\NXP Semiconductors.MCUXpresso Config Tools.mex\shell\open\command" /ve | ||
FOR /F usebackq^ tokens^=2^ delims^=^" %%F IN (`%cmd%`) DO ( | ||
SET tools_path=%%F | ||
) | ||
|
||
REM Exit script config tools was not found | ||
if not defined tools_path ( | ||
echo MCUXpresso config tools was not found! | ||
exit /b 1 | ||
) | ||
|
||
REM Get tools folder from tools exe path | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
FOR /F "delims=" %%i IN ("%tools_path%") DO ( | ||
SET tools_folder=!%%~dpi! | ||
) | ||
ENDLOCAL & SET "tools_folder=%tools_folder%" | ||
|
||
REM Launch config tools from its folder | ||
pushd %tools_folder% | ||
%tools_path% -CreateFromProject %idxFile% -OpencmsisGeneratorCgen | ||
popd |
5 changes: 5 additions & 0 deletions
5
scripts/MCUXpresso_Config_Tools/windows-arm64/launch-MCUXpressoConfigTools.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
REM Script launch MCUXpresso Config Tools in OpenCMSIS generator mode. | ||
|
||
echo Platform is not supported for MCUXpresso Config Tools in OpenCMSIS generator mode! | ||
exit /b 1 |