Hi GIP,
You can check the: flash_f28027 sample code in controlSuite
This can be found here: C:\ti\controlSUITE\device_support\f2802x\v210\f2802x_examples
Also, you can refer this doc for detailed flash implementation: www.ti.com/lit/pdf/spra958
Regards,
Gautam