Skip to content

Commit

Permalink
Add launch script for NXP MCUXpresso Config tools generator (#51)
Browse files Browse the repository at this point in the history
* 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
3 people authored May 15, 2024
1 parent eeb1e9b commit 456c7ac
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ archives:
- LICENSE
- README.md
- third_party_licenses.md
- src: scripts/MCUXpresso_Config_Tools/{{.Os}}-{{.Arch}}/launch-MCUXpressoConfigTools*
strip_parent: true

format_overrides:
- goos: windows
Expand Down
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
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
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
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
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
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

0 comments on commit 456c7ac

Please sign in to comment.