Hi,
I've noticed that the CMSIS drivers for the STM32G4 series have been removed from the Keil::STM32G4xx_DFP package (version 2.x). Does somebody know if there is any intention by Keil/ARM to add these drivers again? I suspect that the reason for the removal was that the drivers where never ported from the "classic" to the "Cube MX" framework (the now preferred framework). I've ported some drivers my self to the "Cube MX" frame work with small to moderate effort. Since the G4 series is quiet popular, I'd suspect that many people would benefit. What do you think?
Best,
Valentin
Hello. I've moved your query to the Keil MDK specific forum.
Thanks!
As explained on this page of the STM32G4 DFP:
https://www.keil.arm.com/packs/stm32g4xx_dfp-keil/overview/
"This DFP is tested with the CMSIS-Driver_STM32 pack that implements CMSIS-Driver interfaces using a shim layer to the STM32Cube HAL. The following drivers are supported.:
- component: CMSIS-Driver:GPIO # GPIO Driver for STM32 devices - component: CMSIS-Driver:I2C # I2C Driver for STM32 devices - component: CMSIS-Driver:SPI # SPI Driver for STM32 devices - component: CMSIS-Driver:USART # USART Driver for STM32 devices - component: CMSIS-Driver:USB Device # USB Device Driver for STM32 devices
is this information up-to-date? The release notes of version 2.0.0 clearly state "Removed CMSIS Drivers". I can not select the SPI driver when I use version 2.1.0 (see image below). Version 1.6.0 at the other hand has the "SPI" checkbox.
I tested this again to make sure it works. I set up a new µVision project for a STM32G4A1VETx device. Then I selected the following things in the RTE dialog (which opens automatically during the project creation):
Make sure that the CMSIS-Driver_STM32 is not disabled in the 'Select Software Packs' dialog (usually enabled by default):
You can find more information with these links:
https://open-cmsis-pack.github.io/cmsis-toolbox/CubeMX/ (see very end of this page for µVision)
https://open-cmsis-pack.github.io/CMSIS-Driver_STM32/latest/spi_stm32.html
I hope this helps.