cancel
Showing results for 
Search instead for 
Did you mean: 

Missing <include "spi.h"> in STM32CubeMX V. 6.4.0. / HAL 1.9.1 (STM32H7)

GS1
Senior III

After migrating a project to STM32CubeMX Version 6.4.0 / HAL 1.9.1

or after creation of a new project using the latest version of STM32CubeMX 6.4.0. / HAL 1.9.1. an include for spi.h is missing, which produces a compiler error! In the previous version all was fine.

Processor: STM32H7A3ZITx

activated port: SPI3

and some Timers, USART, CAN, etc.

After Code Creation with the new release, a line is missing in main.h:

#include "spi.h"

Please forward this to your responsibles. Thank you.

BR GS

10 REPLIES 10
Sara BEN HADJ YAHYA
ST Employee

Hello @GS@S​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

Thanks for your contribution.

Sara.