Skip to main content
Scott Dev
Senior
March 5, 2019
Solved

STM32L4 USB VCP project not compiling

  • March 5, 2019
  • 3 replies
  • 897 views

Hi

I am using STM32Cube V1.0 , version 4.24.0 along with Atollic TrueSTUDIO® for STM32 V9.0. Within Cube I created the project with USB, and created the source code. When I try and compile it I get a bunch of HAL errors, HAL_init() undefined and a bunch of HAL_RCC... commands undefined. I havent done anything different as I have done than creating other projects , straight forward. The .h files seem to be there. Has anyone else have this issue, or know what I have done wrong?

Thanks

Scott

This topic has been closed for replies.
Best answer by Imen.D

Hello @Scott Dev​ ,

Please upgrade to latest STM32CubeMX V5.1.0 release and STM32CubeL4 V1.13.0, then tell us if you are facing same issue

Kind Regards,

Imen

3 replies

Imen.DBest answer
ST Technical Moderator
March 6, 2019

Hello @Scott Dev​ ,

Please upgrade to latest STM32CubeMX V5.1.0 release and STM32CubeL4 V1.13.0, then tell us if you are facing same issue

Kind Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Scott Dev
Scott DevAuthor
Senior
March 7, 2019

Hi Imen

Version 5.1 seemed to work, many thanks. What is STM32CubeL4? I havent used that before.

Thanks

Scott

ST Technical Moderator
March 7, 2019

Hi @scott Dev​ ,

You are using STM32CubeMX with the STM32CubeL4 firmware package, which can be downloaded through STM32CubeMX following the steps below:

Select Help > Manage embedded software packages to open the Embedded Software Packages

The procedure is described in UM1718, Section 3.5.2: Installing STM32 MCU packages.

You can check the"Project Manager" view in your STM32CubeMX project to see the firmware package version used:

Kind Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks