cancel
Showing results for 
Search instead for 
Did you mean: 

RCC PLL Timeout with -O0

Felix TREFOU
Associate
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.

1 ACCEPTED SOLUTION

Accepted Solutions
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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
Felix TREFOU
Associate
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.