Skip to main content
Felix TREFOU
Associate
June 20, 2018
Solved

RCC PLL Timeout with -O0

  • June 20, 2018
  • 2 replies
  • 925 views
Posted on June 20, 2018 at 18:00

Hi,

I'm facing a strange problem due to optimization 0.

Actually, my code is working well but when i set optimisation to 'None' the MCU fail in its initialization.

The lines concerned are in stm32l4xx_hal_rcc.c line 839.

the PLLRDY bit never set, is this a known issue?

Felix.

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on June 20, 2018 at 18:20

    And you're using what tools?

    What version of the L4 library specifically?

    How much time is it actually waiting?

    Issues with L4 code not setting PLLM, ie SystemClock_Config()

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    June 20, 2018
    Posted on June 20, 2018 at 18:20

    And you're using what tools?

    What version of the L4 library specifically?

    How much time is it actually waiting?

    Issues with L4 code not setting PLLM, ie SystemClock_Config()

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Felix TREFOU
    Associate
    June 21, 2018
    Posted on June 21, 2018 at 09:42

    Ok that was that, PLLM not set to 1.

    I already had a similar problem but the code was crashing before, don't know why it was working under different optimizations level!

    Thanks.