Skip to main content
laurentwawrzyniak9
Associate II
February 20, 2019
Solved

Cube L4 V1.13.0 LL__RCC_DeInit() failed in release

  • February 20, 2019
  • 1 reply
  • 1083 views

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

This topic has been closed for replies.
Best answer by Imen.D

Hello @laurentwawrzyniak9​ ,

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

Kind Regards,

Imen

1 reply

Imen.DBest answer
Technical Moderator
March 1, 2019

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"".ThanksImen"
Vladislav Yurov
Associate III
July 20, 2020

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!