A bit difficult to check: Two Zips with eight(!!!) projects each. That is a bit too much work for me. Try to reduce the issue to its barest.
I presume that you get some unwanted feedback from the moving motors/relays to your PSoC power supply. Check with a scope (AC coupling amplificatrion until limited).
I've checked said GPIOs and power supply port for both PSoC with scope AC coupling
when motor is running, steady noise of 50mVp-p observed...no other noise or spike observed
Here I've reattached related project file for reference
In isgMain, I declared the ISR as
and in isgPanel, signal used to activate isgMain's ISR as
Thanks in advance for your help
isgMain_Panel.zip 8.2 MB
How about adding a pull-down resistor for BODY_SENS_DET?
If PSoC4 suffered unexpected reset, The driver pin will keep Hi-Z for a while during boot. That may cause unstable signal on BODY_SENS_DET.
But actually I've tried that too
The reason why I configured BODY_SENS_DET to Hi-Z was,
when I configured it to pull-up or pull-down, the input voltage became 2.6V no matter
what BODY_SENSE_ON_Write was...means always ISR triggered
When I configured it to Hi-Z, then OK(means 0,1 based on input) but still got self triggered ISR.
But today I tried again as your advise...it's work(means 0,1 based on input) and no self triggered anymore
Still dont understand....