Skip to main content
ranran
Senior
November 5, 2018
Question

serial driver using cmsis ?

  • November 5, 2018
  • 3 replies
  • 1437 views

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

    This topic has been closed for replies.

    3 replies

    VRyza
    Associate
    November 5, 2018
    ColdWeather
    Senior
    November 6, 2018

    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
    November 18, 2018

    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)