cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H7S3L8 stuck in While Loop __HAL_SPI_GET_FLAG

carlos_112
Associate II

Trying to get SPI1 to work on the NUCLEO-H7S3L8.

Starting a new project from the Board Selector works with no problem, however starting from the MCU Selector, the HAL_SPI_Transmit gets stuck at in stm32h7rsxx_hal_spi.c in the while loop at line 4008.

Screenshot 2025-05-17 180221.jpg

Eventually we will be using a custom board, so need to figure this out. Any ideas?

Thanks,

:)

3 REPLIES 3
TDK
Super User

Ensure pin speed is set to very high.

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

Hello TDK!

Yes, they are set to Very High. Still no luck. Also, using the Arduino header pins D10 to D13, just as in the example project SPI_EEPROM

Can you look at the signals on a scope or logic analyzer? Are the pins you're using free to use on the board? Check the schematic. What flag is it waiting for? Do the SPI example projects work correctly?

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