CMSIS-Driver for DRIVER_Spi.h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-03 05:07 AM
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?
- Labels:
-
CMSIS
-
DMA
-
SPI
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-03 11:31 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-03 12:44 PM
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.