cancel
Showing results for 
Search instead for 
Did you mean: 

Cube L4 V1.13.0 LL__RCC_DeInit() failed in release

laurentwawrzyniak9
Associate II

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();

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @laurentwawrzyniak9​ ,

Thank you for highlighting this issue. It will be fixed in the coming release of STM32CubeL4 V1.14.0.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

Hello @laurentwawrzyniak9​ ,

Thank you for highlighting this issue. It will be fixed in the coming release of STM32CubeL4 V1.14.0.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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!