2020-12-07 08:29 AM
STM32CubeMX v6.1.0, H7 lib v 1.8.0
is generating code where main() calls MX_USB_DEVICE_Init();, but MX_USB_DEVICE_Init does not seem to be defined anywhere.
int main(void)
{
...
/* Initialize all configured peripherals */
MX_GPIO_Init();
...
MX_USB_DEVICE_Init();
...}
Also worth noticing that MX_USB_DEVICE_Init "line" can be seen in Project Manager-> Advanced Settings, but the Visibility (Static) box cannot be marked:
Change the order/rank of MX_USB_DEVICE_Init did not work around the issue :(
Is this a know issue or do I need to set something extra to get that function's implementation?
Solved! Go to Solution.
2020-12-07 10:59 PM
Hi @RMart.0
The Visibility (Static) check-box is always unchecked because the MX_USB_DEVICE_Init function is already defined in usb_device.c file (under your_project\USB_DEVICE\App).
If you still can't find the MX_USB_DEVICE_Init function, please share your ioc file.
Thanks, Khouloud
2020-12-07 10:59 PM
Hi @RMart.0
The Visibility (Static) check-box is always unchecked because the MX_USB_DEVICE_Init function is already defined in usb_device.c file (under your_project\USB_DEVICE\App).
If you still can't find the MX_USB_DEVICE_Init function, please share your ioc file.
Thanks, Khouloud