2024-04-17 09:55 AM
I'm trying to run a simple UCPD SINK application on the NUCLEO-U575ZI-Q.
I attempted to follow the example provided here:
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:
And I cannot communicate:
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?
2024-05-03 05:52 AM
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