2019-02-20 01:17 AM
I use Atollic TrueSTUDIO v9.0.1 for a STM32L496RG project.
I use the LL_RCC_DeInit() function and have an issue when activation of Optimisation option -Ofast or -O3 .
To fix the issue I had to add the key word volatile (see code below).
ErrorStatus LL_RCC_DeInit(void)
{
// uint32_t vl_mask; // RCC register not changed when opitimzation -Ofast or -O3
volatile uint32_t vl_mask; //FIX to run with opitimzation -Ofast or -O3
/* Set MSION bit */
LL_RCC_MSI_Enable();
Solved! Go to Solution.
2019-02-28 11:13 PM
Hello @laurentwawrzyniak9 ,
Thank you for highlighting this issue. It will be fixed in the coming release of STM32CubeL4 V1.14.0.
Kind Regards,
Imen
2019-02-28 11:13 PM
Hello @laurentwawrzyniak9 ,
Thank you for highlighting this issue. It will be fixed in the coming release of STM32CubeL4 V1.14.0.
Kind Regards,
Imen
2020-07-20 12:26 AM
Hi, I had the same issue. I just want to left here info for other - the issue is now fixed in "STM32Cube_FW_L4_V1.15.1". Thanks!