Could you kindly point us to the example code version you are using ? A link to the landing page will be sufficient.
I am using the example project "Sensorless FOC Motor Control" from the following file: https://www.cypress.com/file/141166/download
Otherwise you can find the file also over: https://www.cypress.com/documentation/development-kitsboards/cy8ckit-037-psoc-4-motor-control-evaluation-kit
under "Related Files" the file named "Download CY8CKIT-037 PSoC 4 Motor Control Evaluation Kit Code Examples".
Kindly refer this application note. The documentation and the comments in the project are sufficient to clear your doubts. Let me know if you need any help.