2019-08-19 07:34 PM
I am working with STM32F405, I seem that the SMT32F405 had hanging when the LSE clock install fail in SystemClock_Config function. So, is there any way, when the LSE clock config fail but the chip still active normal. Thanks
2019-08-19 07:52 PM
Perhaps bring up the clocks individually, or stop using HAL monster functions
2019-08-20 05:59 AM
As Clive points out the only reason you are hanging is that's how HAL does it. There are no hardware restrictions that cause this, and in fact it's not uncommon to timeout on LSE startup and fall back to LSI in order to keep the application running after a hardware failure. I do this on virtually all designs. Sometimes the crystal doesn't start, any number of reasons, but unless a precision LSE is needed the LSI fallback allows you to keep running and at least report a fault.
Jack Peacock