User_config.h GUI editor and Variables

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

User_config.h GUI editor and Variables

Jump to solution
1,032 Views
Jeinstei
Contributor II

So we're trying to create our own BSP and moving things around with MQX, and have found that a user_config.h file located outside the standard location seems unable to find any of the xml files or paths necessary to create its interface. Even after copying the XML files into the directory with user_config and changing the paths in the XML directory to represent this, with the paths treated as relative to the MQX root install, nothing loads when opening the file in Codewarrior. does the MQX configuration editor use a diffferent Root MQX variable or location? Is there some way to get things to load that I'm missing?

 

for example, in user_config_gui.xml instead of;

 

<include>

<path>mqx\...\...\twrknnd100.h</path>

 

we copied the twr header into the same folder and changed this to:

<include>

<path>twrknnd100.h</path>

 

Any ideas would be welcomine; the new editor is quite nice to have and know how to work with. Especially with the extra includes, it seems more powerful than is readily apparent.

0 Kudos
1 Solution
355 Views
MarcinG
Contributor III

Hello Jeinstei,

 

The graphical user_config.h editor was written with some assumptions about the MQX folders structure. Also user user-friendliness required to involve some trade-offs. One of it is that MQX root folder is computed based on the path of user_config.h file - to be exact it is a grandparent folder of the user_config.h folder. E.g for c:\Freescale\Freescale MQX 3.8\config\twrk20d50m\user_config.h the MQX root folder is c:\Freescale\Freescale MQX 3.8\. So the best idea for creating new BSP is to preserve the current structure of the MQX - i.e. if your BSP is called "myCustomBSP" you should create a folder for user_config.h in the config subdirectory e.g. c:\Freescale\Freescale MQX 3.8\config\myCustomBSP\user_config.h, however something like that c:\Freescale\Freescale MQX 3.8\something\myCustomBSP\user_config.h should also work.

 

Also there must be user_config_gui.xml in this same folder (next to user_config.h) and config_gui.xml in the parent folder. All paths in both of these XML files are relative to the MQX root directory (which is computed as a grandparent of the user_config.h folder, as described above).

 

Hopefully it will help you somehow. You can always disable the graphical editor in the Window->Preferences->MQX Preferences tab.

 

Best Regards,

Marcin

 

View solution in original post

0 Kudos
1 Reply
356 Views
MarcinG
Contributor III

Hello Jeinstei,

 

The graphical user_config.h editor was written with some assumptions about the MQX folders structure. Also user user-friendliness required to involve some trade-offs. One of it is that MQX root folder is computed based on the path of user_config.h file - to be exact it is a grandparent folder of the user_config.h folder. E.g for c:\Freescale\Freescale MQX 3.8\config\twrk20d50m\user_config.h the MQX root folder is c:\Freescale\Freescale MQX 3.8\. So the best idea for creating new BSP is to preserve the current structure of the MQX - i.e. if your BSP is called "myCustomBSP" you should create a folder for user_config.h in the config subdirectory e.g. c:\Freescale\Freescale MQX 3.8\config\myCustomBSP\user_config.h, however something like that c:\Freescale\Freescale MQX 3.8\something\myCustomBSP\user_config.h should also work.

 

Also there must be user_config_gui.xml in this same folder (next to user_config.h) and config_gui.xml in the parent folder. All paths in both of these XML files are relative to the MQX root directory (which is computed as a grandparent of the user_config.h folder, as described above).

 

Hopefully it will help you somehow. You can always disable the graphical editor in the Window->Preferences->MQX Preferences tab.

 

Best Regards,

Marcin

 

0 Kudos