USB-PD on STM32G473
Hi everyone!
I have generated a code from CubeMX for USB-PD in bare-metal configuration like this:

Then I started testing the code and the function USBPD_PE_Init at this line:
/* PE SET UP : Port 0 */
CHECK_PE_FUNCTION_CALL(USBPD_PE_Init(_port_index, (USBPD_SettingsTypeDef *)&DPM_Settings[_port_index], &DPM_Params[_port_index], &dpmCallbacks));returned false.
I have looked in the assembler window and found out that some members of
static const USBPD_PE_Callbacks dpmCallbacks =
{
USBPD_DPM_SetupNewPower,
USBPD_DPM_HardReset,
NULL,
USBPD_DPM_Notification,
USBPD_DPM_ExtendedMessageReceived,
USBPD_DPM_GetDataInfo,
USBPD_DPM_SetDataInfo,
USBPD_DPM_EvaluateRequest,
NULL,
NULL, // Like this one!!!
USBPD_PE_TaskWakeUp,
#if defined(_VCONN_SUPPORT)
USBPD_DPM_EvaluateVconnSwap,
USBPD_DPM_PE_VconnPwr,
#else
NULL,
NULL,
#endif /* _VCONN_SUPPORT */
USBPD_DPM_EnterErrorRecovery,
USBPD_DPM_EvaluateDataRoleSwap,
USBPD_DPM_IsPowerReady
};are not allowed to be NULL. So I wonder if this is normal or I'm missing something?
THX!
