Associate II
Nov 11, 2021 1:17 PM UTC
Solved
HAL_SPI_ENABLE causes crash/reset on STM32G030J6
- 4 replies
- 2801 views
I am trying to communicate with an SD card using SPI.
I have found a library, that can work on an STM32g031f6, but if I try to do the same on an STM32g030j6, it crashes/resets when it calls the function "__HAL_SPI_ENABLE" in "stm32g0xx_hal_spi.c".
I have attached an image of the wiring, normally I would use PA13 fo SD_CS, but I have changed it to PC14, so I can debug the chip.

