Hello @RHelv.1 I checked you file and if your application is using DRP state machine you need to apply following fix to avoid a new attachmentline 854 of your files case USBPD_CAD_STATE_SWITCH_TO_SRC:
case USBPD_CAD_STATE_SWITCH_TO_SNK:
{
...
Hello Sodag,The USB-PD standard defines some rules for the cable detection (information available there https://www.usb.org/document-library/usb-type-cr-cable-and-connector-specification-release-22 ), the CAD process manages these rules through a sta...
Hi @Sodag.1 In your case, the scheduler is the while(1) instruction which will sequentially call the different functions: USBPD_CAD_Process, USBPD_PE_StateMachine_SNK and USBPD_DPM_UserExecute.Present inside the delivered stack, there is a file whic...
Hi Sodag,Bare metal brings some constraints unlike RTOS we don't have preemption management. So you must avoid blocking the system inside a task. The main constraint is on the management of USB-PD message exchanges, the standard requires responding t...
Hi @Sodag.1 ,The USBPD_DPM_Run function differs depending on whether you are in RTOS or bare metal system.In case of RTOS, the USBPD_DPM_Run function is used to start the OS and USBPD_DPM_UserExecute is the user application function called inside a ...