2025-11-26 12:22 PM
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...
The board modifications are below:
- fitted X2
- fitted C47 and C48
- connected solder bridges SB67 and SB69
- disconnected solder bridges SB68 and SB70
PS. This relates to my other post about I2S master clock speed...
Solved! Go to Solution.
2025-11-27 7:08 AM
@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...
2025-11-27 7:18 AM
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.
2025-11-27 7:24 AM
Indeed.
And you have a crystal-generated HSE clock - from the ST-Link.
2025-11-27 7:28 AM
Because I need an I2S master clock of 12.888MHz as I posted here...
I cannot seem to achieve a 12.888MHz I2S master clock using HSI or MSI
2025-11-27 7:32 AM
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 ?
2025-11-27 7:36 AM - edited 2025-11-27 7:47 AM
@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:
2- Solder R19: you can put 0 ohm
3- Configure the HSE in Bypass mode in CubeMx.
2025-11-27 7:37 AM
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
2025-11-27 7:44 AM
@Andrew Neil Not on L4 boards - disconnected by default.
2025-11-27 7:47 AM
@freeflyer If something is possible with 8MHz HSE then it's also possible with 8 or 4 MHz MSI.
2025-11-27 8:00 AM
@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)