Lpc54628 spifi program

hi, i am suraj,
i just started doing spifi program in lpc54628 board and i have some problems
whether the answer which i am getting is right or not and so many more
please refer the code and reply according to that as soon as possible
i have attached the code for further reference


with regards
suraj