Skip to main content
mark239955
Associate II
May 5, 2014
Question

Question about STM32 CubeMX

  • May 5, 2014
  • 2 replies
  • 660 views
Posted on May 05, 2014 at 12:41

Hi guys,

I just used STM32 CubeMx to generate a brief project frame as I configed. I looked at the files that Cube includes to my project. For example, it has stm32f4xx_HAL_can.c, and in the stm32F429I discovery board support webpage, ST gives some example code about peripherals, in its peripheral driver, it has stm32f4xx_can.c. 

I compared with those two files and honestly I can not find something actually different. My question is are they same? why ST doesn't use same driver file, any particular reason? And I also check HAL definition, I still can not quite understand it, anyone could give me a brief idea or useful link?

Thanks for your help.

Regards

Mark
    This topic has been closed for replies.

    2 replies

    Amel NASRI
    ST Technical Moderator
    May 22, 2014
    Posted on May 22, 2014 at 17:57

    Hi Mark,

    Please share the generated driver or your .ioc file.

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    stm32cube-t
    ST Employee
    June 19, 2014
    Posted on June 19, 2014 at 16:37

    Hello Mark, check-out

    http://www.st.com/stm32cube

     for an understanding of new ST initiative: stm32f4xx_HAL_xx.c/.h drivers are part of the STM32CubeF4 HAL library which shares a common API with the other STM32 series.

    The other driver you're refering to (stm32f4xx_can.c) belongs to the standard peripheral library (ST legacy solution for STM32 microcontrollers).