Skip to main content
mr23
Associate
April 4, 2016
Question

CubeMX v4.14 USB Host Problem

  • April 4, 2016
  • 4 replies
  • 951 views
Posted on April 04, 2016 at 09:06

Hello. I use STM32F407VET6 device.

I try to use USB Host (Mass Storege Host Class). Project (for IAR) generate correctly.

I try to compile for C++ and have ( Error[Pe067]: expected a ''}'') multiple errors. 

I use frimeware package for family STM32F4 v 1.9.0 / v 1.11.0

So i noticed. In file usbh_conf.h mising closing braket for extern ''C'' 

There is 

#ifdef __cplusplus

 extern ''C'' {

#endif

But no 

#ifdef __cplusplus

 }

#endif

Fix it please :)

P.S. I'm sorry if this issue already known :)

    This topic has been closed for replies.

    4 replies

    slimen
    Visitor II
    April 4, 2016
    Posted on April 04, 2016 at 09:45

    Hello,

    I suggest you to use the last library version: STM32Cube_FW_F4_V1.11.0

    May be this error is fixed.

    -ForumSTM32-

    mr23
    mr23Author
    Associate
    April 4, 2016
    Posted on April 04, 2016 at 11:07

    Hi, i check v 1.11.0 problem still exists

    slimen
    Visitor II
    April 4, 2016
    Posted on April 04, 2016 at 12:12

    Hi,

    Yes, I confirm this bug related to STM32CubeMx when we use USB Host.

    - ForumSTM32-

    stm32cube-t
    ST Employee
    April 12, 2016
    Posted on April 12, 2016 at 11:54

    Dear user,

    Thank you for reporting the issue.

    This problem will be resolved with STM32CubeMX 4.15.

    Best regards