Hello Ajay,
According to the S08PA Reference Manual, the PTA4 pin contains an internal pullup resistor if BKGD function is enabled, and this function is enabled by Reset.
In this case I recommend to disable the BKGD function on SOPT1 register (bit BKGDPE).
Regarding the PTA5 pin, that shares the pin functionality with the RESET, I also recommend to clear the RSTPE bit from the SOPT1 register in order to make the pin function as a GPIO.
Hope this information will be useful for you.
Have a great day. :smileyhappy:
Best Regards,
David Diaz.