Skip to main content
Björn Haase
Associate
April 10, 2018
Question

CubeMX clock configuration fails for L4R5ZI chips

  • April 10, 2018
  • 2 replies
  • 576 views
Posted on April 10, 2018 at 15:32

Why does the STM32CubeMX tool in my Nucleo-L4R5ZI-based project disallow HCLK frequencies below 15 MHz? According to the datasheet frequencies as low as 100 kHz should be possible.

When writing this: The current eclipse CubeMX plugin seems to have major bugs for the L4R5ZI, with respect to the configuration of the external oscillator frequencies. Moreover the file formats for the .ioc cubeMX projects for the plain W32 application and the eclipse plugin seem to be incompatible.

When configuring our (needed) low frequencies, the configuration of the clock tree function in the generated code, seems to get stuck and calls a fatal error handler.

Any hint on how to fix/circumvent these problems?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    April 23, 2018
    Posted on April 23, 2018 at 13:30

    Hello

    haase.björn

    ,

    Which tools version are you using ?

    Please attach your ioc file, this will help us to check this issue.

    Best Regards,

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Nawres GHARBI
    Technical Moderator
    April 23, 2018
    Posted on April 23, 2018 at 15:16

    Hi Björn

    If you have selected the init all when loading the board, this is the USB which is requesting a frequency over exactly 14.2 MHz, 

    If you don't need the USB please turn it off and you will be able to go under 15 MHz