x-cube-tcpp icon indicating copy to clipboard operation
x-cube-tcpp copied to clipboard

Outdated information in readme

Open fleS-dnoyeB opened this issue 6 months ago • 1 comments

Caution The Issues are strictly limited for the reporting of problem encountered with the software provided in this project. For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post a topic in the ST Community/STM32 MCUs forum.

Describe the set-up The file has incorrect information. Projects/NUCLEO-G071RB/Applications/USB_PD/SNK1M1_Sink/README.md

states that "By default, the sink asks for the highest power matching PDO of the connected source. User can change this behaviour by changing the USER_SERV_PDO_Sel_Method variable in usbpd_user_services.c." But there is no such file and also there is no such variable in the project.

Additional context N/A

Screenshots N/A

fleS-dnoyeB avatar Jun 01 '25 10:06 fleS-dnoyeB

Hello,

Thank you for reporting this issue.

Yes, I confirm that the readme file need an update. An internal ticket will be created to fix it.

Otherwise, the USER_SERV_PDO_Sel_Method variable could be modified in usbpd_dpm_user.c file here : https://github.com/STMicroelectronics/x-cube-tcpp/blob/8496a33b3f14bb55e962c3e4842e343d7f234eb5/Projects/NUCLEO-G071RB/Applications/USB_PD/SNK1M1_Sink/USBPD/Target/usbpd_dpm_user.c#L134

Regards

MSGSTM avatar Jun 02 '25 14:06 MSGSTM