2022-07-11 09:04 AM
I am trying to use the HAL_PWREx_EnableSRAMRetention() function described in UM2319 Description of STM32G0 HAL and low-layer drivers
I am using STM32CubeIDE, with my project configured as a STM32 project (with .ioc file for managing software packs, etc)
Problems I am having:
Help please?
Solved! Go to Solution.
2022-07-11 09:18 AM
Figured it out: it actually was in the STM32CubeG0 MCU Firmware Package, my bad!
It's even included in my project. I just needed to add the following to the top of the c file where I was calling the HAL_PWREx_EnableSRAMRetention() function:
#include "stm32g0xx_hal_pwr_ex.h"
2022-07-11 09:18 AM
Figured it out: it actually was in the STM32CubeG0 MCU Firmware Package, my bad!
It's even included in my project. I just needed to add the following to the top of the c file where I was calling the HAL_PWREx_EnableSRAMRetention() function:
#include "stm32g0xx_hal_pwr_ex.h"