Working with Config Tools - nxp-mcuxpresso/vscode-for-mcux GitHub Wiki
VS Code extension works with ConfigTools standalone version
Download and install Config Tools
Standalone Config Tools can be downloaded from:
Download standalone version of Config Tools.
After install, you can use Config Tools from the VS Code extension.
Use Config Tools
Note: The Config Tools do not support toolchain projects based on the west build system. For such projects the update of the import and export of generated files have to be managed manually, see the section 'Github SDK projects' below.
Open your MCUXpresso for VS Code extension and right click on the project you want to configure using Config Tools and choose -> Open with MCUXpresso Config Tools.
If the Config Tools has been installed in a location different than the default one, you will be asked to provide the installation path.
Config Tools will open and load the configuration for the selected project. For further details on using the Config Tools please refer to the Desktop Config Tools User Guide
Github SDK projects
The following steps describe how to modify pins or clocks configuration in the projects based on the west tool build system available via SDK GitHub repository.
-
Launch the standalone MCUXpresso Config Tools desktop application.
-
Click on the
Cancel
button in the Start development dialog -
Select
File > Import...
menu command and selectImport Source
option -
In the import dialog click the browse button and locate the pin_mux.c that is used by the project.
-
Then confirm the import by clicking the Finish button.
Now the configuration is imported from the information stored in the selected file including the processor selection.
-
If you would like to import the clocks configuration, repeat the steps from step 3, except that locate and select the clock_config.c file instead.
-
Save the configuration using the menu command
File > Save...
. Specify a name for the .mex file and save it into the project folder or some temporary folder on the disk. Use the Config tools to add or modify pins or clocks configuration. -
After you have the configuration ready in the Config Tools, click on the Update Code button and confirm the Update Files dialog with OK button. This will write the generated files into the 'board' subfolder at the .mex file location.
-
Now the files generated by Config Tools are available on the disk in the board folder. You need to replace the original files used by your project or modify the toolchain project files to reference the newly generated files so they are used in the build.
Note: Please note that board files in the SDK repository are shared. They can be found under the {sdk_repo}/mcuxsdk/examples/_board/{your_board}/{example}... folder. When you overwrite them at the original location, other projects using them will be influenced.
Tip: For furhter modification of the configuation later, you can open the saved .mex file instead of importing the configuration from the generated files.