STM32CubeIDE or STM32CubeMX doesnot generate SPI HAL code for Nucleo-H7S3L8
Hey there,
I’m trying to enable SPI on the NUCLEO-H7S3L8 using the Template_XIP project from STM32CubeH7RS, but I’m running into issues.
First, I tried enabling SPI1 through CubeMX on the Template_XIP project, but it didn’t generate the necessary driver code. When I build, I get this error:
/Users/++++++/STM32Cube/Repository/STM32Cube_FW_H7RS_V1.2.0/Projects/NUCLEO-H7S3L8/Templates/Template_XIP/Appli/Src/main.c:167:(.text.MX_SPI1_Init+0x96): undefined reference to `HAL_SPI_Init'
collect2: error: ld returned 1 exit status
make: *** [makefile:66: Template_XIP_Appli.elf] Error 1
So I made a new project from scratch for the same board, copied the relevant config from Template_XIP, and now CubeMX does generate the SPI code. But when I run it, I get a HardFault right away.
I tried digging into it with the usual debug steps according to this blog "How to debug a HardFault on an Arm® Cortex®-M STM32" (SP was 0x2000FFDC, next addresses 0x20020000, 0x20010024…), but honestly none of it makes sense and I can’t trace what’s causing it.
I posted about a similar issue on my blog a while ago and got no response.
Maybe someone from ST can take a look? Or anyone else who ran into something like this with Template_XIP?
Thanks,

