cancel
Showing results for 
Search instead for 
Did you mean: 

UCPD SINK Application NUCLEO-u575ZI-Q

acipriano
Associate II

I'm trying to run a simple UCPD SINK application on the NUCLEO-U575ZI-Q.

I attempted to follow the example provided here: 

https://wiki.stmicroelectronics.cn/stm32mcu/wiki/STM32StepByStep:Getting_started_with_USB-Power_Delivery_Sink#-5BOPTIONAL-5D_Configure_Tracer_for_debug

With debug setup and everything: 

If I allow the application to remain a FreeRTOS application the device does not at all get recognized in STM32CubeMonitor-UCPD.

If I do a no RTOS iteration: 

```

MX_ADC1_Init();

/* USER CODE BEGIN 2 */

 

 

/* USER CODE END 2 */

 

/* Init scheduler */

// osKernelInitialize();

/* USBPD initialisation ---------------------------------*/

MX_USBPD_Init();

 

/* Call init function for freertos objects (in cmsis_os2.c) */

// MX_FREERTOS_Init();

 

/* Start scheduler */

// osKernelStart();

 

/* We should never get here as control is now taken by the scheduler */

 

/* Infinite loop */

/* USER CODE BEGIN WHILE */

while (1)

{

/* USER CODE END WHILE */

USBPD_DPM_Run();

// HAL_GPIO_TogglePin(BLUE_LED_GPIO_Port, BLUE_LED_Pin);

// HAL_Delay(1000);

 

/* USER CODE BEGIN 3 */

}

/* USER CODE END 3 */

}

```

I can connect to the device but I get no trace visibility:

acipriano_1-1713372587747.png

And I cannot communicate:

acipriano_2-1713372661433.png

And I am running in debug mode I see that I'm infinitely in the `USBPD_DPM_Run();` function. Not sure I am doing wrong here?

10 REPLIES 10
Nicolas P.
ST Employee

Hello @acipriano Amilcar,

one thought : how is your JP4 jumper ?

Is your VDD@1V8, or 3V3 ?

Because UCPD will work only at 3.3V.

Regards,

Nicolas