Please post your code so we can check it.
Thanks for the replay.
It is not a code problem (I wish to get to the point where I'm writing code for that).
It is a missing component, Even though (As well as i understand) PVref is a PSoC4 Componnent.
Not all devices contain all of the components some of the PSOC Ble devices have less components. due to less resources in the chip due to the Ble function.
That Component Programmable voltage reference is only on the PSOC Analog Coprocessor series parts.
I'm using the CYBLE-022001-00, and for measuring the battery voltage I take a reading of the voltage with reference to the internal 1.024 volt rail. Unfortunately, we are using two pins to setup a voltage divider so that the battery voltage is between the 1.024v reference and ground, so it requires some external wiring.
Try checking out these posts on battery voltage reading: