Cube generated code doesn't compile, multiple structs and enums undefined/correct headers not linked.
I am attempting to create a program to implement SPI communication from my STM32H753XI MCU, all I did to do this was start a new project in Keil's uVision and generate the code from Cube after selecting my pinouts.
Once my code was generated, however, I attempted to compile it and got 30 errors regarding identifiers that haven't been defined. These appear to be structs and enums from other header files that haven't been included in my project when I generated the code, I've listed examples below.
C:\Users\User\AppData\Local\Arm\Packs\Keil\STM32H7xx_DFP\2.3.0\CMSIS\Driver\SPI_STM32H7xx.h(284): error: #20: identifier "SPI_HandleTypeDef" is undefined
"" "" error: #20: identifier "HAL_SPI_STATE_ABORT" is undefined
"" "" error: #20: identifier "HAL_SPI_STATE_RESET" is undefined
"" "" error: #20: identifier "HAL_SPI_STATE_ERROR" is undefined
These are just a few of them. Is this a mistake I made when generating the code from CubeMX?
