cancel
Showing results for 
Search instead for 
Did you mean: 

serial driver using cmsis ?

ranran
Senior II

Hello,

Is there a cmsis driver for uart ?

I build with stm32cubemx, but I did not find any cmsis files for any driver (I also don't see in cube anywhere we can state that we want to use cmsis driver)

I also did not find it in examples of stm32cubeh7:

en.stm32cubeh7\STM32Cube_FW_H7_V1.3.0\Projects\STM32H743I_EVAL\Applications\FatFs

Thank you,

ranran

3 REPLIES 3
VRyza
Associate II
ColdWeather
Senior

The CMSIS "driver" just DECLARES the USART access configuration - function/variable/flags names, driver structure - suggesting NO code to work with the peripheral. You should IMPLEMENT - write the code of - the declared functions, fill the "empty" functions in. When using KEIL, you'll find the templates under

\KEIL\ARM\Pack\ARM\CMSIS\5.4.0\CMSIS\Driver\DriverTemplates

You can use CubeMX functions for a certain STM CPU to implement the needed driver functions.

VRyza
Associate II

Hi!

Sorry for long silence.

I think that Cube not include CMSIS for UART. You need download CMSIS library from Keil site (see link) and include this driver into own project self.

There are own drivers for UART into Cube (see file stm32f4xx_hal_uart.c)