cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H7S3L8 HSE times out

qua
Associate III

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.

5 REPLIES 5
AScha.3
Super User

Did you set it like this ?

AScha3_0-1759756684796.png

+ in clock tree set the 24M

AScha3_1-1759756733437.png

It should work then. (My H7S3 does.)

 

If you feel a post has answered your question, please click "Accept as Solution".
qua
Associate III

qua_0-1759757349801.png

 

qua_1-1759757370871.png

Looks like it is set correctly.

Did you set it like this ?

AScha3_1-1759758741512.png

 

... and USB:

AScha3_0-1759758704754.png

 

If you feel a post has answered your question, please click "Accept as Solution".
qua
Associate III

qua_0-1759760790473.png

 

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).

 

If you feel a post has answered your question, please click "Accept as Solution".