cancel
Showing results for 
Search instead for 
Did you mean: 

USB-PD attention callback never get's triggered?

Brenden_PLUS
Associate III

Problem 

When i call 

* USBPD_PE_SVDM_RequestAttention

I get a OK message response but the callback never gets called.  

* USBPD_VDM_SendAttention

 

Curious to know if there's any good way to debug this? 

 

Current debugging steps

I have a STM32G0-Disco board setup to capture the messages over USB-PD and display them with ST's USB-PD monitoring software.  So i know the attention pin is not currently activating.  I have a breakpoint to make sure that USBPD_PE_SVDM_RequestAttention is being called.  If i wait a few seconds and then trigger it to call USBPD_PE_SVDM_RequestAttention again i get a BUSY error.  So i figure it's trying to send it, it just can't?

 

 

My project

I'm using this as my base with a stm32G071- nucleo board.  I grab the CC lines from usb with a breakout board that passes the USB datalines through.  

https://github.com/STMicroelectronics/STM32CubeG0/tree/master/Projects/STM32G081B-EVAL/Applications/USB-PD/USB-PD_Consumer_1port

And i'm migrating all the USB-PD calls that relate to Display Port/VDM  over from this project

https://github.com/STMicroelectronics/STM32CubeG0/tree/master/Projects/STM32G081B-EVAL/Demonstrations/DemoUCPD

 

 

Screenshot 2025-12-21 at 10.12.14 AM.png

Screenshot 2025-12-21 at 10.01.39 AM.png

0 REPLIES 0