RAKWireless / RAK-STM32-RUI

RUI3 BSP for RAK3172 modules
Other
26 stars 17 forks source link

RAK3172 bat voltage calculation Vrefint #12

Closed shiwzhi closed 10 months ago

shiwzhi commented 1 year ago

https://github.com/RAKWireless/RAK-STM32-RUI/blob/07c28d0af264c925d41e49abe09975b2ed91deb5/cores/STM32WLE/component/service/battery/service_battery.c#L21C6-L21C6

The Vrefint voltage range specified in the STM32WLE5 datasheet is from 1.18V to 1.23V. Why is 1.27V used here instead of 1.2V? Can VREFINT_CAL also be used to calculate the voltage?