This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error in std include

Hi

I have a problem concerning compiling my project in uVision4. If i use an example from ST (since I'm using STM32L-Discovery board) VirtualComport_Loopback everything compiles without a problem (and the program functions as well). But when I try to implement that function (CDC USB communication) into my existing project, I get the Error: #40: expected an identifier and error: #65: expected a ";" that refer to usb_type.h include which is a part of Standard USB FS device library of ST. It is not altered in any way from the one I use with ST example. I added all .h files that are inclued in the example into the project and I can't understand this...

Thank you

Parents
  • No, the way ST structures their projects with the CMSIS library, is that you need to drop in STM32L1xx_StdPeriph_Lib_V1.1.1\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_tim.c (or whatever your configuration is) to your project itself, to resolve the absence of the TIM_xxxx functions at link time.

    The include files, permitting compilation success, usually come in via
    STM32L1xx_StdPeriph_Lib_V1.1.1\Project\YOURPROJECT\stm32l1xx_conf.h

Reply
  • No, the way ST structures their projects with the CMSIS library, is that you need to drop in STM32L1xx_StdPeriph_Lib_V1.1.1\Libraries\STM32L1xx_StdPeriph_Driver\src\stm32l1xx_tim.c (or whatever your configuration is) to your project itself, to resolve the absence of the TIM_xxxx functions at link time.

    The include files, permitting compilation success, usually come in via
    STM32L1xx_StdPeriph_Lib_V1.1.1\Project\YOURPROJECT\stm32l1xx_conf.h

Children