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
Well, since it compiled successfully, I guess so? Usually, if a src or inc file is missing, wouldn't that - as you indirectly suggested - arise an issue already during compilation?
That's why I was asking about .lib file which was mentioned somewhere in this forum as a solution for ERROR: L6218E Undefined symbol. I didn't include any lib files by now, because I wasn't told to and I don't have an idea what it does...
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
Thanks, I didnt notice I was missing a few files in StdPeriphLibDr file group of a project tree. Turns out that I also mistakebly copied one .c file into a folder with includes and that took its toll in diagnosing the problem :).
I hope this software will function now!