Solved
I'm using _HAL_SPI_GETFLAG(SPI2, SPI_FLAG_TXE). I'm getting an error in the STM32g0xx_hal_spi.h file. The error is at the hal_spi_getflag statement. I've checked for updates and it did not load a different file. Do I need a include file?
..
..
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.