STMicroelectronics / STM32CubeF7

STM32Cube MCU Full Package for the STM32F7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
322 stars 191 forks source link

CubeMX: USB_OTG_FS / USB_HOST does not initialize PA10 #48

Closed FBergemann closed 2 years ago

FBergemann commented 3 years ago

I am trying to set up USB_OTG_FS / USB_HOST for NUCLEO-F767ZI - with the "Device Configuration Tool" (CubeMX).

For creating a new STM32 Project for NUCLEO-F767ZI, in the beginning, i

Then next:

The resulting usb_conf.c, does not have any initialization for PA10 (resp. GPIO_PIN_10 resp. USB_OTS_FS_ID).

But all reference projects, i'd been given initialize like this: /* Configure ID pin */ GPIO_InitStruct.Pin = GPIO_PIN_10; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP; GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

But those reference projects don't use the Device Configuration Tool (CubeMX)

Those reference projects are:

Is the initialization of PA10 missing for setting up with Device Configuration Tool (CubeMX)?

FBergemann commented 3 years ago

BTW Note, that i also filed more issues in the same context:

I didn't find any reference project for "USB_HOST / Mass Storage Host Class" that is using the Device Configuration Tool (CubeMX). All examples/references i was given, didn't use *.ioc file. It would be good to have examples, that are based on the Device Configuration Tool (CubeMX). Then those problems would have shown up already, before.

RKOUSTM commented 2 years ago

Hi @FBergemann,

This duplicated issue will remain closed. A further detail of your reported point is answered in Issue #47.

With regards,

RKOUSTM commented 2 years ago

Duplicate of #47.