Which Nucleus software do you have, and which BSP or target-specific part do you have?
We are using Nucleus 03_2013 on mips target.
Do you have any SAFE FS architecture document which will help in understanding SAFE FS? And I have seen some signatures i.e. SDATA_NR and SDATA_FAT, what are these and how are they calculated?
What exactly the difference between WriteVerifyPage and VerifyFlash? Where to store SDATA_NR and SDATA_FAT?
Here is an example breakdown from my installation, which roughly shows the layers involved:
\nucleus\os\storage\file\fs\safe (generic SAFE file system)
\nucleus\os\drivers\safe\base (generic SAFE file system driver)
\nucleus\bsp\imx28evk\drivers\safe\mt29f4g08 (flash part specific functions)
\nucleus\bsp\imx28evk\devices\safenand0.c (flash part register definitions, functions and definitions to configure the target board to provide access to the flash part)
At a minimum, you would either port the \bsp\<target> driver and device files to your device, or create new files using the ones already there as a guide.
The SAFE defines/functions you mentioned are in the generic code, and you shouldn't have to modify them.