Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Descriptions - ini_2_c.exe

The Ini_2_C tool is used to translate an INI file into C header file, C code blocks, or binary configuration as required by the Flex_Config tool. It replaces symbolic register/firmware variable/Special Function Register/MCU Memory with register addresses/bit values.


The Ini_2_C is a command line tool for both Microsoft Windows and Linux. It has no GUI interface.

  • Usage: ini_2_c [options] –input <ini file name> -output <C filename> -format <C|H> -sdat <SDAT file name>
  • Usage: ini_2_c -help

Example:

  • ini_2_c -verboase –input AR0833-REV1.ini -output AR0833-REV1.c -format C -sdat AR0833-REV1.xsdat

Command line parameters

-input <ini file name >
Specify the input ini file.

-output <C filename>
Specify the filename for the C output file. The next parameter will control if output is header file format or code block format. If not given, default is stdout.

 

-format <C/H>
Specify the output format. "C" will instruct the program to create C language code block; "H" will cause the program to create C header file format. If this switch is missing, or in default case, Ini_2_C will produce header file format output.

 

-sdat < sdat or .xsdat file name >
Specify the sdat/xsdat files input. If this file is missing, the program will stop.

 

-verbose
The program will output excessive message to output, including all presets and line inforamtion. Default is not to output debuging messages.

 

-help
This message.

  • No labels