Source File List

The following sections describe all the source code files included in the system. These files follow the HCC Embedded standard source tree system, described in the HCC Source Tree Guide. All references to file pathnames refer to locations within this standard source tree, not within the package you initially receive.

Note: Do not modify any files except the configuration file and PSP files.

Configuration File

The file src/config/config_safe_nor_mx29gl128f.h contains the configurable system parameters. Configure these as required. This is the only file in the module that you should modify. For details of the options, see Configuration Options.

System Files

These files are in the directory src/safe-flash/nor/phy/macronix. These files should only be modified by HCC.

File Description
mx29gl128f.c Driver source code.
mx29gl128f.h Driver header file.

Version File

The file src/version/ver_safe_nor_drv_mx29gl128f.h contains the version number of this module. This version number is checked by all modules that use this module to ensure system consistency over upgrades.

Platform Support Package (PSP) Files

These files in the directory src/psp/target/macronix define the psp_mx29gl128f_hw_init() function that configures the hardware.


  • These are PSP implementations for the specific micro-controller and board; you may need to modify these to work with a different micro-controller and/or development board; see PSP Porting.
  • In the package these files are offset to avoid overwriting an existing implementation. Copy them to the root hcc directory for use.

The files are as follows:

File Description
psp_mx29gl128f_hw.c Low level initialization function.
psp_mx29gl128f_hw.h Header file.

The PSP also has a version file, ver_psp_mx29gl128f_hw.h.