Then please post your complete project here so that we all can have a look at.
To do so: in Creator go to
Build -> Clean Project
File -> Create workspace Bundle (minimal)
and then upload the resulting archieve here.
Too bad, I've overlooked it:
BOOL is not defined. Since in PSoC3 boolean vars could really be bits which only is working on 8051 cores you should take care of that.
Easiest can be a
typedef uint8 BOOL;
For a PSoC5, it is much simpler:
and you are set.
(But this doesn't work for the PSoC3, the compiler doesn't know about such basic things 😞