2022-12-17 09:36 AM
2022-12-17 12:46 PM
As Peter said above, the issue is related to HSI precision and frequency change with temperature, because HSI used to determine the crystal's frequency.
JW
2022-12-17 10:42 AM
Welcome, @jlecl.1, to the community!
One can only assume, because this is a hint from WeActStudio and not from ST.
Presumably they pointed it out on their Github site because it detunes the crystal oscillator a little and they hope that the slightly changed frequency will cause the DFU mode to synchronise.
Does it answer your question?
Regards
/Peter
2022-12-17 10:54 AM
The crystal detunes was my first idea.
As the advice to maintain at 25° the µC and not the crytal,I would like to knwo is there i some advice for DFU that I haven't read :)
2022-12-17 11:47 AM
Well, that's in AN2606: STM32 microcontroller system memory boot mode, at the end of section 4.1:
For STM32 devices embedding bootloader using the DFU/CAN interface in which the external clock source (HSE) is required for DFU/CAN operations, the detection of the HSE value is done dynamically by the bootloader firmware and is based on the internal oscillator clock (HSI, MSI). When (because of temperature variations or other conditions) the internal oscillator precision is altered above the tolerance band (1% around the theoretical value), the bootloader might calculate a wrong HSE frequency value. In this case, the bootloader DFU/CAN interfaces might malfunction or not work at all.
I can only assume that WeActStudio hopes to get into the frequency band mentioned with the temperature change.
Regards
/Peter
2022-12-17 12:38 PM
maybe just a joke. (the chance to have a wrong setting pll is the reason for connection problem and some 25° clears this problem is about - try it at full moon. then it will work. )
if driver for usb/stm-dfu-device is on system, dfu device will be enumerated. otherwise - not.
heat up or freeze will change nothing.
2022-12-17 12:46 PM
As Peter said above, the issue is related to HSI precision and frequency change with temperature, because HSI used to determine the crystal's frequency.
JW
2022-12-18 01:17 AM
perfect, it's clear for me.
Thanks all !