Skip to main content
cc0de.1
Associate
April 6, 2020
Question

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.

  • April 6, 2020
  • 3 replies
  • 902 views

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

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
April 6, 2020

Blinking a LED works?

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

JW

cc0de.1
cc0de.1Author
Associate
April 6, 2020
Thank you for the response:
No the pin are not shorted, I can blink LEDS connected to the same pins.
Thanks!
waclawek.jan
Super User
April 6, 2020

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

JW