cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32G431C8U6 SPI2 HardFault.

Ydemi.1
Associate

Hi,

I am working on a project with STM32G431C8U6. My code always goes to HardFault Handler. I created a new project for testing my MCU just an easy code, code went to HardFault again. I share my ScreenShoot's please help....

1 REPLY 1
Imen.D
ST Employee

Hello @Ydemi.1​,

Check that the hspi is valid. Could be an overrun corrupting it.

Can you access this memory outside of the HAL_SPI_Transmit function?

Check the SPI limitations in the errata-sheet related to your device.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen