cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0318 MCU: Does anyone have an example of using SPI with this MCU? I get the reset handler called after initialization, when this line is called: __HAL_SPI_ENABLE(hspi); in HAL_SPI_Transmit.

cc0de.1
Associate

I used STM32CubeMX to generate a simple project, have a simple breakout board with nothing connected to it other than power, programmer, and ground.

3 REPLIES 3

Blinking a LED works?

SPI pins aren't shorted to ground/other pins?

JW

Thank you for the response:
No the pin are not shorted, I can blink LEDS connected to the same pins.
Thanks!

Try to write a simple polled register-based SPI transmitter routine, avoiding Cube/HAL.

JW