Skip to main content
TCao
Visitor II
August 20, 2019
Question

How to the STM32F4 Chip action normally. When the LSE clock install fail.

  • August 20, 2019
  • 2 replies
  • 687 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
August 20, 2019

Perhaps bring up the clocks individually, or stop using HAL monster functions

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Jack Peacock_2
Associate II
August 20, 2019

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