Hello Wuye,
if you do not want to utilize EZ_PORT then my suggestions are:
- keep EZP_CS high during reset (NOTE: do not forgot to take time constants (if RC components connected on RESET and PTA4) into account, the time constant on PTA4 must be much lower than on reset, if this conditions are not meet it could happend that during reset the low level is detected on PTA4 which at the end will results in EZ_PORT mode)
- disable EZ_PORT as mentioned before by EZPORT_DIS bit field in FOPT must be 0 in flash configuration field (flash location 0x40C). This part of flash is affecting the contant of FTFx_FOPT register content after reset. The values from flash configuration field (inlcuding FOPT, FSEC etc.) are copied into the FTFx_FOPT, FTFx_FSEC etc registers during reset condition (before reset is released) which at the end configure the device at reset..
regards
R.