Missing option in CubeMX for battery charging on STM32H730
In CubeMX ther is missing optines to select charging of the battery and the seceltion of charging resistor 1.5K or 5K
I would expect it to be under "System Core" -> RCC as it should go into resig PWR_CR3
So for my system I have to duck in "main.c"
HAL_PWREx_ConfigSupply (PWR_LDO_SUPPLY);
to
HAL_PWREx_ConfigSupply (PWR_LDO_SUPPLY | PWR_CR3_VBE | PWR_BATTERY_CHARGING_RESISTOR_1_5);
But it gets keeping over written from CubeMX
It is this 2 bits in PWR_CR3
Bit 9 VBRS: VBAT charging resistor selection
0: Charge VBAT through a 5 k Ω resistor.
1: Charge VBAT through a 1.5 k Ω resistor.
Bit 8 VBE: VBAT charging enable
0: VBAT battery charging disabled.
1: VBAT battery charging enabled.
