2024-02-05 03:08 AM
Hi, is it necesarry to use a crystal oscilator for DFU USB booltloader for STM32F427zit? Can I use a generator instead of crystal?
Marcin
2024-02-05 05:42 AM - edited 2024-02-05 05:44 AM
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)"
2024-02-05 05:55 AM - edited 2024-02-05 05:58 AM
Hello,
This is what was stated in the AN2606. It states to use an external crystal.
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.
2024-02-05 12:45 PM
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.
2024-02-05 01:42 PM
The accuracy is what matters, not the source. Required accuracy is about +/- 0.25%. Does your oscillator meet that?
2024-02-06 01:35 AM
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