Skip to main content
ElvisWei
Associate
Mar 10, 2021 9:12 AM UTC
Solved

Short between PF0-OSC_IN and PF1-OSC_OUT pins may cause the MCU stop running.

Hi,

In my experiment based on the STM32F091, a crystal connects between PF0-OSC_IN and PF1-OSC_OUT pins. When the two pins short which may lead the MCU stop working.

Please let me know how to address the issue.

Best regards,

Elvis

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Mar 11, 2021 11:52 AM UTC

In startup, make sure that after HSE enable, the wait for the HSERDY flag does not loop forever, and if it exits with finding out the failure, switch to HSI.

During runtime, use CSS; read the Clock security system (CSS) subchapter of RCC chapter in RM0091.

JW

4 replies

Tesla DeLorean
Guru
Mar 10, 2021 9:18 AM UTC

How did they short?

Is the code running but stuck in Error Handler as clock didn't start? Part doesn't start external clock itself.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ElvisWei
ElvisWeiAuthor
Associate
Mar 11, 2021 9:05 AM UTC

The examination (short the two pings) may be required during a safety test to check if the hardware failure could cause an unacceptable risk to the system.

The two pings connect to a 16M Hz crystal for CAN bus communication, and when it short will cause the code stop running.

Is that any suggestion on the situation? 

Many thanks,

Elvis

waclawek.jan
waclawek.janBest answer
Super User
Mar 11, 2021 11:52 AM UTC

In startup, make sure that after HSE enable, the wait for the HSERDY flag does not loop forever, and if it exits with finding out the failure, switch to HSI.

During runtime, use CSS; read the Clock security system (CSS) subchapter of RCC chapter in RM0091.

JW

ElvisWei
ElvisWeiAuthor
Associate
Mar 12, 2021 2:51 AM UTC

Hi JW,

Thank you for the advice. I will look into it.

Regards,

Elvis