cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX v4.14 USB Host Problem

mr23
Associate II
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 🙂

4 REPLIES 4
slimen
Senior
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
Associate II
Posted on April 04, 2016 at 11:07

Hi, i check v 1.11.0 problem still exists

slimen
Senior
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
Senior III
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