cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f4-discovery with STM32CubeMX

ilias
Associate II
Posted on January 15, 2015 at 14:34

Hello,

I am using an

stm32f4-discovery

board with MCU

stm32F407

.

My intention is create a project using the

STM32CubeM

X c generator using both RTOS and USB Middlewares. I want to be able to see in my Device Manager of my PC a new HID device when I connect the board using the micro usb connector.

My problem is that although the project is created normally is built successfully using IAR workbench, finally no HID device is identified.

I have enabled in the peripherals of the board USB_OTG_HS as device and I have set the Middleware USB Device class as HID.

I have also tried other combinations (I also USB_OTG_FS) but no result.

I am newbie and what I am asking is if anybody knows how to enable the usb and rtos using the CubeMX c code generator.

Thanks in advance.

#stm32f4-discovery
3 REPLIES 3
Posted on January 15, 2015 at 22:16

Cube-related questions are best to be asked in the dedicated ''software tools'' sub-forum

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx

JW
ilias
Associate II
Posted on January 16, 2015 at 06:59

Ok, thanks for your reply.

Amel NASRI
ST Employee
Posted on January 23, 2015 at 11:11

Hi Ilias,

If the problem isn't yet resolved, try to increase heap & stack sizes in the file ''startup_stm32f407xx.s''.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.