Skip to main content
Associate III
July 11, 2024
Question

USBPD for B-U585I-IOT02A

  • July 11, 2024
  • 1 reply
  • 909 views

Hello forum,

Im trying to create a code for reading from and writing to a USB flash drive using the USB-C connector,
While activating the USBPD, USBX, TCPP, and FileX, the code generated missing some defines and variables like "DPM_Ports", "PWR_Port_PDO_Storage" and USBPD Defines,

they don't appear anywhere in the generated files and I couldn't find an example with them to understand what I did wrong, Has anyone encountered this behavior?

1 reply

HFISTM
ST Employee
July 11, 2024

Hello @ElectroManiac 

 

Did you follow the step by step wiki ? wiki_link 

You will need to add USBX after it. The wiki is done for freertos as example but you can use ThreadX without issues.

You can find the a similar application for the H5 platform here. You can do the same with your board, configuring CubeMX the same way and using the same user code.

 

Best regards

Associate III
July 11, 2024

I've made the post after trying the wiki,

I'm not using ThreadX because I want to run everything locally, Is that what causing the issue?