There are multiple examples for writing to flash, sflash, and emulating eeprom using the flash.
Here's a post that contains several examples: http://www.cypress.com/forum/psoc-4-architecture/writing-flash-psoc4
Here's one for sflash: http://www.cypress.com/blog/100-projects-100-days/project-029-supervisory-flash-psoc-4-ble
Here's another for sflash: http://www.cypress.com/forum/proc-ble/supervisory-flash-write
Here's one for a "global" flash function: http://www.cypress.com/forum/psoc-4-ble/how-store-byte-array-flash-memory
Thanks!! Pratt I'll have a look at those projects.