cancel
Showing results for 
Search instead for 
Did you mean: 

CMSIS-Driver for DRIVER_Spi.h

LMorr.3
Senior II

Does anyone know how I include CMSIS-Driver's DRIVER_Spi.h library in CubeIDE? I was not able to find it installed by default. Is this library supported for STM32 Cube and if so, what is the CubeIDE way of adding it?

2 REPLIES 2
Pavel A.
Evangelist III

Are you sure that you want the CMSIS-Driver at all? AFAIK it is very rarely used, if at all.

> Is this library supported for STM32 Cube and if so, what is the CubeIDE way of adding it?

Negative.

Only the Keil MDK (where it originated from) has it as installable component.

I was not sure, but now that you mention this, I won't use it. I'm about to just implement the SPI RX using CMSIS only to see how that goes. The reference manual makes it looks so simple ( enable SPE and rxBuffer DMA fills and IRQ handlers get called as per settings. ) I was not sure on how to add my spi and DMA IRQ handlers using CMSIS but now realize they are set as weak functions using naming conventions via CubeMX NVIC page and I don't need to set those using CMSIS to avoid HAL. I'll give that a try.