STM32G0 project created by CubeMX does not work
The hardware I have is the STM32G0 Discovery Kit. The sample code using this hardware works normally. I tried to rebuild a project using CubeMX. I found that it would be in CHECK_PE_FUNCTION_CALL (USBPD_PE_Init (USBPD_PORT_0, (USBPD_SettingsTypeDef *) & DPM_Settings [USBPD_PORT_0] , & DPM_Params [USBPD_PORT_0], & dpmCallbacks)) An error code USBPD_PDFU_NODATA appears. I cannot tell what went wrong with this error code. I increased the heap size and stack size according to similar suggestions, but it doesn't work. Maybe where is the problem?
