Importing a device configuration

A device configuration includes a MEX file and source code files that specify interconnections between the device’s pins and clocks and connected peripherals. You can create these files within your project, or you can import external configuration files into your project.

To import device configuration files:

  1. Create or open a project that includes a device configuration (MEX file).
  2. Select the project in the Project Explorer and click File > Import on the main menu.
  3. In the Import dialog box, double-click S32 Configuration Tools. Click to import a MEX file, registers, or source files, then click Next.


    Importing files with device clock configuration

  4. Specify the settings for import:
    • If you import a MEX configuration, browse to the existing MEX file, specify the target project for import, and select tool-specific data to be imported:


      Importing a MEX file

    • If you import registers, browse to the registers configuration (for instance, to a CSV file), and specify the functional group under which the registers will be added:


      Importing registers

      Note: To learn how to get a CSV file with registers configuration, refer to Exporting a device configuration.
    • If you import a source file, browse to it. Then select functional groups to be imported.


      Completing the import

      If the source file already exists in the target project, specify how to handle the existing functions when their names match the names of functions to be imported:
      • Select overwrite to replace the existing function with the imported one.
      • Select rename to keep in the destination source file both the existing function and the imported function under different names.
  5. Click Finish.