cancel
Showing results for 
Search instead for 
Did you mean: 

Example via CubeIDE is OK, but same via MX is not (STM32C0, Ux_Host_HID_Standalone)

Grant Bt
Senior

This appears to be loosely related to

https://community.st.com/t5/stm32cubemx-mcus/warning-during-stm3cubemx-setting-in-usb-host-on-platform/m-p/194919#M8793

If I start with Cube IDE:

File -> New -> STM32 Project then select NUCLEO-C071RB and then Ux_Host_HID_Standalone

all goes swimmingly well.  However, if I start with CubeMX, then choose the same example I get errors:

WarningCodeGeneration.jpg

PlatformSettingsError.jpg

I can make the Platform Settings error go away by assigning a GPIO to who knows what, per the related post, but I don't want to waste a GPIO and furthermore, I want to make changes to the project that I cannot do using the IDE-only method. Is there some other setting I'm missing in the CubeMX example creation?

1 REPLY 1
Grant Bt
Senior

My best guess at the moment is that the CubeMX generated version requires the dummy GPIO for

 

void USBH_DriverVBUS(uint8_t state);

 

found in usbxh_platform.c .h

 

I don't see this function being called anywhere though.