Hi, pay attention to following example code. Although it is written for different device, principle of simple flash programming is the same:
https://community.nxp.com/docs/DOC-101849
However much better solution is to use our SSD driver (NXP site for particular device, Software&Tools/Run-Time Software/Middleware-Device Drivers).
Example codes then you will find in installation directory.
