Example Usage
This section lists the steps to create an example pin configuration, which can then be used in a project.
In this example, three pins (PTD1, PTE11 and PTE15) on a processor are configured.
You can use the generated files with the application code.
- Launch the S32 Configuration Tools with the shortcut present in the installation folder.
- From the Create a new configuration dialog select S32V2 > S32V2xx
to launch the Pins Tool.
Figure 1. Select the processor
- In the Pins view on the left, select the SPI_0,cs0,1; SPI_0,cs0,2
signals. For this, you can click into the cells to make them ‘green’.
Figure 2. Configure Signals in Pins Tool
- The Pins Tool automatically generates the source code for
pin_mux.c and
pin_mux.h on the right panel of the Code
preview tab.
Figure 3. Generated code
- You can now copy-paste the content of the source(s) to your application
and IDE. Alternatively, you can export the generated files. To export the files:
select the menu File > Export. In the Export dialog, expand the
tree control for the tool you want to export sources for and select the Export
Source Files option.
Figure 4. Export Source Files
- Click Next and specify the directory for each respective core (in multicore
configuration) where you want to store the exported files for each individual core
(in case of multicore configuration).
Figure 5. Exported Pins Source Files Directory
- Click Finish to export the files.
- Integrate and use the exported files in your application as source files.
You have created the configuration for your pins.
The following sections in this User’s Guide describe the features of the tool in detail.