Is the .mex file format publicly documented ?

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

Is the .mex file format publicly documented ?

903 Views
314
Contributor I

Hi,

I'd like to convert .mex configuration files to another language than C.

Is the .mex file format documented and publicly accessible ?

Regards,

Nicolas

0 Kudos
2 Replies

820 Views
liborukropec
NXP Employee
NXP Employee

Hi,

the only public documentation of MEX is the XSD - for version 6.0 - https://mcuxpresso.nxp.com/XSD/mex_configuration_1.6.xsd . For version 7.0 it is not yet published (will be soon).

I'm not sure whether from MEX the source code could be generated - you will miss lots of information stored in the tools data (basically everything in XML code). If you look into the tools data (e.g. here c:\ProgramData\NXP\mcu_data_v7\processors\MK64FN1M0xxx12\ksdk2_0\scripts)  the code itself is generated using javascript. There's no official documentation / support for modifying/debugging the javascripts.

Regards,

Libor

0 Kudos

820 Views
314
Contributor I

Hi Libor,

Thanks for your answer. Version 7 is out now.

The xsd document is very interesting. However, I hoped there is some sort of pdf explaining mex files content. Maybe I'll have a look at javascript code (far from my preferred language) to know more.

Thanks again.

Nicolas

0 Kudos