Skip to main content
Visitor II
February 5, 2024
Solved

STM32F427 Bootloader HSE Signal

  • February 5, 2024
  • 3 replies
  • 1664 views

Hi, is it necesarry to use a crystal oscilator for DFU USB booltloader for STM32F427zit? Can I use a generator instead of crystal?

 

Marcin

    This topic has been closed for replies.
    Best answer by TDK

    The accuracy is what matters, not the source. Required accuracy is about +/- 0.25%. Does your oscillator meet that?

    3 replies

    Super User
    February 5, 2024

    You are required to use a crystal or other clock source with sufficient accuracy. The internal HSI clock is not sufficient.

    It's unclear what this "generator" is, but if it has sufficient accuracy, it will work.

    Per AN2606, the source must be "An external clock multiple of 1 MHz (between 4 and 26 MHz)"

    Technical Moderator
    February 5, 2024

    Hello,

    This is what was stated in the AN2606. It states to use an external crystal.

     

    SofLit_1-1707141020670.png

    If you mean by "generator" an external clock source like a crystal oscillator (HSE in bypass mode), I think it may work but it's not guaranteed.

     

     

    mkuczmaAuthor
    Visitor II
    February 5, 2024

    Hi, thanks for your replies. I just want to use same clock source for uC and other IC to save PCB space and I am wondering if a standard 3,3V oscilator will work? Is there a difference for a bootloader if clk source is crystal or oscilator? Mayby someone can confirm it.

    TDKAnswer
    Super User
    February 5, 2024

    The accuracy is what matters, not the source. Required accuracy is about +/- 0.25%. Does your oscillator meet that?

    Super User
    February 6, 2024

    The bootloader will most probably work OK with external oscillator connected to OSC_IN pin (don't forget that OSC_OUT still needs to remain unconnected), but I don't think ST will rush in to confirm that. Although I know it's not a proof, you can test it on a Nucleo or Disco board, where 8MHz is provided by STLink's MCO (on Disco, you may need to disconnect the crystal, which is there quite strangely connected in parallel with the STLink's MCO).

    Also keep in mind that for the DFU bootloader, besides what @TDK  wrote above, it's better to use a lower frequency oscillator.

    JW