Skip to main content
LMorr.3
Senior
June 3, 2023
Question

CMSIS-Driver for DRIVER_Spi.h

  • June 3, 2023
  • 1 reply
  • 1153 views

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?

This topic has been closed for replies.

1 reply

Pavel A.
Super User
June 3, 2023

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.

LMorr.3
LMorr.3Author
Senior
June 3, 2023

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.