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_nand_mt29fxg01_spi.h contains the configurable parameters of the system. 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/nand/phy/micron. These files should only be modified by HCC.

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

Version File

The file src/version/ver_safe_nand_mt29fxg01_spi.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/safe_nand_mt29fxg01_spi provide the psp_safe_nand_mt29fxg01_spi_init() function that configures the hardware. Modify these files as required for your 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.
  • 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_safe_nand_mt29fxg01_spi.c Low level initialization function source.
psp_safe_nand_mt29fxg01_spi.h Header file.

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