2025-10-06 5:45 AM
I am trying to set up a basic USB project on a NUCLEO-H7S3L8. It works okay with the HSI, but I need the HSE. I can see that the board has a 24MHz crystal fitted and resistors on SB14 and SB15. It's unmodified from the factory.
HAL_RCC_OscConfig() always returns with a timeout when trying to activate the HSE. I've tried various settings but can't get it to work.
I have attached my .ico file. The code is just what CubeMX generates. Thanks.
2025-10-06 6:19 AM
Did you set it like this ?
+ in clock tree set the 24M
It should work then. (My H7S3 does.)
2025-10-06 6:30 AM
Looks like it is set correctly.
2025-10-06 6:53 AM
Did you set it like this ?
... and USB:
2025-10-06 7:26 AM
2025-10-06 12:00 PM
So to check, the HSE crystal is ok , running, do a simple test:
make new -> stm32 project -> select just the H7S3L8H cpu -> give it a name, finish.
Then
- set only for "boot" , so its all in flash
- set RCC HSE , LDO, scale0
- set HSE 24M , clock tree to 600M core, etc.
- set debug trace async
- cortexM7 all caches on
(if you like, set port pin toggle an onboard led)
- generate code
- compile + debug
-- it should run (mine does).