Configure applications
This chapter covers how to make various changes to your application. It includes:
- Modify code
- How-to set configuration options
- Use configurators
- Use tools
- Use integrated terminal
- Refresh Quick Panel
- Rename application
- Restore shared directory
Modify code
Most code examples work as they are, and there is no need to add or modify code in order to build or program them. However, if you want to update and change an application to do something else, or if you are developing your own application, open the appropriate file in the code editor.
-
PSOC™ MCU : In the Project Explorer, double-click the main.c file.

Note: The "includes" in this example show "unresolved inclusions" because the files are located in the mtb_shared folder. This and other issues with IntelliSense are resolved after a build.
-
AIROC™ Bluetooth® : In the Project Explorer, expand the [app-name] project folder and double-click the application [app-name].c file.

As you type into the file, an asterisk (*) will appear in the file’s tab to indicate changes were made. The Save/Save As commands will also become available to select.
C/C++ Search is no longer supported by ModusToolbox™ Eclipse due to programmatic disabling of indexing. You should disable C/C++ Search via the Search > Search > Customize menu. Other search types are not affected.
How-to set configuration options
Since a ModusToolbox™ application is based on the GNU-make system, most of the project configuration is controlled by editing the Makefile. This section contains common configuration options that Eclipse users need to be aware of. For more information about the ModusToolbox™ build system, see chapter five in the tools package user guide.
Specify debug and release configurations
Edit the project/application MakefileCONFIG parameter. Valid options are: Debug, Release, and Custom. If you set the value to Custom, then also set the optimization flag in the CFLAGS variable.
Do not use the global configuration Debug/Release menu items, and do not use the Project > Build Configurations option. These are both ignored.
Exclude files/folders from build
By default, a ModusToolbox™ application includes a .cyignore file that specifies files and folders to exclude from a build. You can add entries to this file. You can also edit the Makefile to add CYIGNORE make variables.
Do not use Resource Configurations > Exclude From Build... This will be ignored.
Specify linker settings (including per-file linker settings)
Edit the project/application Makefile for these variables: CFLAGS, CXXFLAGS, ASFLAGS, LDFLAGS
There is no other way to specify linker settings in Eclipse.