Adapt project's Makefile

If you want your project to use the pinmap configuration that you've created, you'll need to adapt the Makefile to point to the correct generated configuration header file, generated from your .pincfg file.

The default Makefile uses the board evbc4000p from the S-SDK, we need to replace this name with the name of the generated configuration header file.

The Makefile must contain the correct CONFIG_BOARD variable, and we need to adapt the C_INCS


  1. CONFIG_DEVICE: must contain the device name, and CONFIG_BOARD: must contain the name of the configuration (i.e. the identifier directly following the PinSetting keyword in the .pincfg file).
  2. C_INCS: must be augmented with the location of the folder containing the generated header file (i.e. src-gen project's folder).
Figure 1. Name of the configuration to be used

Here are the two modifications, illustrated in the diff window below. The right part illustrates the default content of the Makefile, while the left part shows the modifications.

Figure 2. Adapt CONFIG_DEVICE, CONFIG_BOARD and C_INCS

Now that the Makefile is updated, you can compile your project, which now points to the good configuration.