Skip to main content
ElvisWei
Associate
March 10, 2021
Solved

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

  • March 10, 2021
  • 3 replies
  • 1530 views

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.
Best answer by waclawek.jan

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

3 replies

Tesla DeLorean
Guru
March 10, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
ElvisWei
ElvisWeiAuthor
Associate
March 11, 2021

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
March 11, 2021

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
March 12, 2021

Hi JW,

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

Regards,

Elvis