iPhone battery not charging- software issue

Hi all,

I have a 14 Pro that's not charging. The phone registers the connection but won't move past 1% and now won't turn on. It's not the charger, as I've tried wireless and wired charging.

This same issue happened about a month ago and I was able to reset the iPhone and reinstall the latest OS. After doing that, the phone appeared to charge normally again. Now, the issue is happening again but I can't turn the phone on. It says the charger is connected, but it won't charge at all.

Any advice is appreciated.