I use my bench PSU
It has voltage and current limiting.
I set the voltage before connecting the batteries.
Then turn the current limit right down, and connect the batteries, and then increase the current to perhaps C/10 or whatever I think the cells will take
Then the bench PSU limits to that current until it gets to the desired max voltage
Anything not related to STM32