Customizing Projects
You can change basic project settings in the Project Settings window. You can change chip, and oscillator frequency. Any change in the Project Setting Window affects currently active project only, so in case more than one project is open, you have to ensure that exactly the desired project is set as active one in the Project Manager. Also, you can change configuration bits of the selected chip in the Edit Project window.
Managing Project Group
mikroC PRO for ARM IDE provides convenient option which enables several projects to be open simultaneously.
If you have several projects being connected in some way, you can create a project group.
The project group may be saved by clicking the Save Project Group Icon from the Project Manager window.
The project group may be reopened by clicking the Open Project Group Icon
. All relevant data about the project group is stored in the project group file (extension
.mcarmgroup
)
Add/Remove Files from Project
The project can contain the following file types:
.c
source files.h
header files.emcl
binary files.pld
project level defines files- image files
.ihex
EEPROM files.hex
,.asm
and.lst
files, see output files. These files can not be added or removed from project.- other files
The list of relevant files is stored in the project file (extension .mcarm
).
To add a file to the project, click the Add File to Project Icon or press Insert button on your keyboard. Each added source file must be self-contained, i.e. it must have all necessary definitions after preprocessing.
To remove file(s) from the project, click the Remove File from Project Icon or press Delete button on your keyboard.
Project Level Defines:
Project Level Defines (.pld
) files can also be added to project. Project level define files enable you to have defines that are visible in all source files in the project. A file must contain one definition per line in the following form :
<symbol>=<value>
Define a macro named symbol. To specify a value, use =<value>
. If =<value>
is omitted, 1 is assumed.
Do not enter white-space characters immediately before the "=
".
If a white-space character is entered immediately after the "=
", the macro is defined as zero token. This option can be specified repeatedly.
Each appearance of symbol will be replaced by the value before compilation.
For example, lets make a project level define named pld_test
. First of all, create a new file with the .pld
extension, pld_test_file.pld
.
Next, open it, and write something like this :
pld_test=3
Once you have done this, save the file. In the Project Manager, add pld_test_file.pld
file by right-clicking the Project Level Defines node.
In the source code write the following :
#if pld_test == 3 ... #endif
There are number of predefined project level defines. See predefined project level defines

.h
), use the preprocessor directive #include
. See File Inclusion for more information.
What do you think about this topic ? Send us feedback!