Skip to main content
Moritz Diller
Associate III
June 21, 2018
Question

Minimum HCLK frequency for STM32L433CC in CubeMX

  • June 21, 2018
  • 1 reply
  • 2869 views
Posted on June 21, 2018 at 11:33

CubeMX doesn't like a frequency of 12 MHz for HCLK with the STM32L433CC.

0690X0000060LFAQA2.png

HCLK is suggested to be at least 14.2 MHz, but I couldn't find any such requirement in the reference manual or datasheet.

The F4 RM0090 mentions: ''To guarantee a correct operation for the USB OTG FS peripheral, the AHB frequency should be higher than 14.2 MHz.''

Does this apply to the L4 series as well?

Kind Regards,

Moritz

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    June 21, 2018
    Posted on June 21, 2018 at 13:25

    You have peripherals clocking at 48 MHz.

    Select 4 MHz MSI for ADC and CLK48-USB

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Moritz Diller
    Associate III
    June 21, 2018
    Posted on June 21, 2018 at 15:06

    Sorry, I don't understand your answer. MSI can't be selected for ADC, USB isn't happy with anything else than 48 MHz and HCLK still requests more than 12 MHz.

    0690X0000060LMPQA2.png
    Tesla DeLorean
    Guru
    June 21, 2018
    Posted on June 21, 2018 at 15:14

    But you could use SYSCLK, why is SYSCLK at 48 MHz if you want to run the part at 12 MHz?

    There is likely something CubeMX doesn't like, or as usual it is broken in some way, the part can definitely run at 12 MHz, but it seems to be warning about a potential clock inversion issue.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..