Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Which PSoC kit are you using? CY8CKIT-0??
The sprintf() buffer variable "dbg" is defined quite too small. So some parts of your sram gets overwritten.
Is there a reason for the large stack size of 0x1200 bytes?
Everything back to normal now