emWin Middleware Include Path Issue - KBA228006

Version: **

Context:
emWin middleware in ModusToolbox™ IDE 1.0 and 1.1.

Issue:
emWin middleware ignores configurations made in the configuration header files located in the Source/emWin_config folder (LCDConf.h and LCDConf_CompactColor_16.h).

Cause:
This issue is caused by an error in the emWin build system integration files - emWin_config folder is not added to the “include paths” list when emWin middleware is enabled in the ModusToolbox Middleware Selector.

Workaround:
You can fix the issue by adding the emWin_config folder to the “include paths” list in ModusToolbox.

To do this:

1. Select your project and then click the “Project Build Settings” link in the Quick Panel.
   

2. Go to C/C++ Build -> Settings

3. In the Configuration selector, select [All configurations] option.

4. In the Tool Settings tab, select GNU ARM Cross C Compiler -> Includes

5. In the Include paths list, press Add… button and enter the following path:

 

  "${workspace_loc:/<XXX>_mainapp}/Source/emWin_config"

      where XXX is the name of your project.

   
         Note
Make sure that the newly added include path is located immediately after the
     "${workspace_loc:/<XXX>_mainapp}/Source" line.

6. Press the Apply and Close button to save changes.