Ithink the excessive consumption comes from the LPUART I use to debug. But when I disable the LPUART in CubeMX in the .ioc file and I generate the code, I get compilation errors in stm32_lpm_if.c with vcom_Resume function because usart_if.c does not exist yet.
So my problem didn't come from the LPUART. In fact, I changed the "End Node skeleton" to "User defined skeleton" in the .ioc file, I replaced all the functions I used and I unchecked the box "Use UART for Trace" to disable the LPUART (it's only possible with this skeleton, not very practical).
I went back to the PWR_EnterStopMode example and I realized I didn't copy exactly the code. I think because this example uses LL drivers whereas I use HAL drivers in my firmware but they are compatible. I reach a consumption around 1.9 - 2 A
Welcome to the website for the former South Carolina Department of Health and Environmental Control (DHEC). This website is no longer being updated but will be available for some time as a public service.
VCOM is an osteopathic medical school with a mission to prepare globally-minded, community-focused physicians to meet the needs of rural and medically underserved populations and promote research to improve human health. Many VCOM graduates pursue primary care residencies to meet the needs of people in nearby communities and greater Appalachian and Delta Regions. Learn more about the college at
www.vcom.edu.
3a8082e126