Skip to main content
Amir Chaudhary
Associate
December 26, 2018
Question

External Crystal not working on STM32L073Rz Nucleo Board.

  • December 26, 2018
  • 2 replies
  • 1722 views

The Nucleo Board takes clock (8MHz) from ST- Link Programmer and we want to switch it to external (8MHz) crystal which is not working.

We programmed the RCC->CR register to 0X03030300U so that it sets to external crystal but it shows 0X03050305U ( HSEBYP, HSEON, HSI16RDYF, HSI16ON is set).

This is making the uC to operate on its internal clock.

Everytime the HSERDY bit is zero that says that the External clock is not stable.

We tried changing different external crystal's of 8MHz on the STM32L073RZ Nucleo Board and also changed different values of cap's (18pf, 20pf, 27pf, 33pf) but none of them worked.

Please guide.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
December 26, 2018

BYPASS is not the mode you want for an external crystal ​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Amir Chaudhary
Associate
December 26, 2018

No we are not using HSEBYP,

We are setting 0X03030300 which set the HSEON and clears HSEBYP.

Only issue is that the HSERDY bit is not set.

Tesla DeLorean
Guru
December 26, 2018

Sorry, I'm not going to decode the register level stuff on this.

Use the library examples, they are known to work.

Make sure all the other connections to the chip from the ST-LINK 8MHz source are removed.

Review the BOM for the parts/values used by ST.

Review the Crystal Oscillator App Note, and check the parts recommend, and computation for crystal load caps.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Amir Chaudhary
Associate
December 26, 2018

Thank you for all your support.

All the connections including the resistors, caps of 20pF and 8MHz crystal are properly connected at its place.

Have done after reviewing the BOM and schematics from ST.

If any other info most welcome.

Thank you.