2021-04-07 01:54 AM
Hi,
I
have downloaded an example (Tx_CMSIS_Wrapper) project for stm32h747 discovery
kit from STM32CubeMX. After downloading the example project, I was able to
compile it on STM32CubeIDE 1.6.0 and flash it in the board. I was able to
program both the cores and run it individually.
After
this, I wanted to add a SPI interface in the same example project. For this, I
uncommented #define HAL_SPI_MODULE_ENABLED in stm32h7xx_hal_conf.h in both of
the cores and after that I called the MX_SPI1_Init function main.c file. While
calling the initialisation function in main.c file, it was able to locate
stm32h7xx_hal_spi.h file but it could not find stm32h7xx_hal_spi.c file.
It
was showing the error undefined
reference to `HAL_SPI_Init' while building.
I
checked the folder structure of STM32H7xx_HAL_Driver folder and the file stm32h7xx_hal_spi.c is available in the folder
structure. The folder structure is already included in the path and USE_HAL_DRIVER is also available in the setting. So, I don't
know where the problem is and I am stuck in it.
The program compiles all other
modules that came with the example project however it does not compile the
module that I have added later in the project.
Could you please help me out with
this problem?
2021-04-25 09:55 PM
In which package spi flash program,you got
2021-04-26 12:18 AM
Make sure that SPI is enabled in your stm32h7xx_hal_conf.h