cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my HSE crystal not working on NUCLEO-L433RC-P board ?

freeflyer
Senior II

I have fitted an 8MHz crystal with 8.2pF capacitors to the NUCLEO-L433RC-P development board, but it is not working.

The software goes to an error handler when configuring the clocks, becuase of a time out iduring the function HAL_RCC_OscConfig (wait till HSE is ready)...

 

/* Set the new HSE configuration ---------------------------------------*/
 __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
 
 /* Check the HSE State */
 if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
 {
 /* Get Start Tick*/
 tickstart = HAL_GetTick();
 
 /* Wait till HSE is ready */
 while(READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U)
 {
 if((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
 {
 return HAL_TIMEOUT;
 }
 }
 }

 

The part numbers for the crystal and capacitors are below...

Crystal: CG04874-8M

https://www.ndk.com/en/products/upload/lineup/pdf/NDKX03-00009_en.pdf

Capacitors: KGM05ACG1H8R2CH

https://datasheets.kyocera-avx.com/C0GNP0-KGM.pdf

The clock configuration is below...

freeflyer_0-1764187994761.png

The board modifications are below:

- fitted X2

- fitted C47 and C48

- connected solder bridges SB67 and SB69

- disconnected solder bridges SB68 and SB70

freeflyer_2-1764188307709.png

 

freeflyer_1-1764188213990.png

 

PS.  This relates to my other post about I2S master clock speed...

 

https://community.st.com/t5/stm32-mcus-products/can-i-use-an-internal-rc-oscillator-to-achieve-an-i2s-master/m-p/859639#M289324

 

24 REPLIES 24

@freeflyer wrote:

Is it not possible to buy this development board with the 8MHz crystal and capacitors already fitted ?


I think it is, indeed, not possible.

Perhaps you can find a rework facility to do this for you?

The Nucleos are targetted for simple evaluation - It sounds like you're at the point where you need to move to your own PCB...

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
gbm
Principal

I do not quite understand why you need this crystal. With LF crystal present you may easily generate accurate high frequency clock using MSI synchronized to LSI.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

Indeed.

And you have a crystal-generated HSE clock - from the ST-Link.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Because I need an I2S master clock of 12.888MHz as I posted here...

https://community.st.com/t5/stm32-mcus-products/can-i-use-an-internal-rc-oscillator-to-achieve-an-i2s-master/m-p/859639#M289324

I cannot seem to achieve a 12.888MHz I2S master clock using HSI or MSI

 

I have removed the ST Link top part of the board and now use an STLINK-V3MINIE on the header pins (for VCC, GND, RST, SWDIO and SWCLK).

Are you saying I can feed the HSE clock on the STLINK-V3MINIE i into the NUCLEO-L433RC-P board ? 

If so, how ?


@Andrew Neil wrote:

Indeed.

And you have a crystal-generated HSE clock - from the ST-Link.


Except for STLINK-V3, you configure the STLINK  to generate the MCO signal from the crystal using STM32CubeProgrammer STLINK updater tool. Which is not the case for NUCLEO-L433.

@freeflyer Why you need to add a crystal while you can retrieve the precise clock (8MHz) from ST-LINK-V2?

But for that you need to:

1-  Solder: SB64:

mALLEm_0-1764257603332.png

2- Solder R19: you can put  0 ohm

mALLEm_1-1764257651954.png

3- Configure the HSE in Bypass mode in CubeMx.

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

I had to order the CG04874-8M crystal from Digikey, but as this comes from the US (to the UK) the delivery cost and time is high.

Could I use this crystal (ABM8AAIG-8.000MHZ-V2R-T3) from RS instead...

https://docs.rs-online.com/861b/A700000012715866.pdf

 

@Andrew Neil Not on L4 boards - disconnected by default.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

@freeflyer If something is possible with 8MHz HSE then it's also possible with 8 or 4 MHz MSI.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

@freeflyer wrote:

Because I need an I2S master clock of 12.888MHz


Could you use an external 12.888MHz oscillator instead?

(or some other suitable frequency)

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.