2024-07-25 02:52 PM
Hello,
I try to build a 'PDO SINK' project on B-U585I-IOT02A and I have watched the video How to build an USBPD Sink application using the X-Cube-TCPP software pack - YouTube.
Issue:
After build project on STM32CubeMX 6.12.0 and opened project in STM32CubeIDE 1.13.2, there is errors shows '../TCPP/App/app_tcpp.h:26:10: fatal error: usbpd_ADC_SNK.h: No such file or directory'.
Could you please review attached screenshot and let me know if there is something I'm missing in my project setup.
Best regards,
Robert
Solved! Go to Solution.
2024-07-26 05:07 AM
Hi Robert7
Thanks for sharing your .ioc and project.
As you are not using a BSP (which is correct), you should fill the platform settings tab of the X-CUBE-TCPP. This is why usbpd_ADC_SNK.h is missing.
But the main point is that the B-U585I-IOT02A has a TCPP03 embedded and not a TCPP01.
So, to build a sink application with this board:
- Select the Sink application and the TCPP0203 board part in the software pack selection
Configure ADC4-IN5 for Vbus, I2C2 for the TCPP03 I2C, PE8 as GPIO-EXTI (Falling Edge detection with pull up) for the TCPP03 FLG and PB5 as GPIO Output for the TCPP03 Enable.
- Assign them in the platform settings tab
- And adapt the parameter settings tab values to the board
Please find attached my .ioc for this case in reference.
Best regards
Pascal
2024-07-26 05:07 AM
Hi Robert7
Thanks for sharing your .ioc and project.
As you are not using a BSP (which is correct), you should fill the platform settings tab of the X-CUBE-TCPP. This is why usbpd_ADC_SNK.h is missing.
But the main point is that the B-U585I-IOT02A has a TCPP03 embedded and not a TCPP01.
So, to build a sink application with this board:
- Select the Sink application and the TCPP0203 board part in the software pack selection
Configure ADC4-IN5 for Vbus, I2C2 for the TCPP03 I2C, PE8 as GPIO-EXTI (Falling Edge detection with pull up) for the TCPP03 FLG and PB5 as GPIO Output for the TCPP03 Enable.
- Assign them in the platform settings tab
- And adapt the parameter settings tab values to the board
Please find attached my .ioc for this case in reference.
Best regards
Pascal
2024-07-26 11:02 AM
Hello Pascal,
Thank you for your help. I have opened your project and save as to another folder.
The project code has been successfully generated after SMPS has been enabled from 'Power and Thermal'->'PWR'->'Power Saving'->'System power supply'->'Power Regulator' .
However, I can't see the board and COM9 port when I run the project and started STM32CubeMonitor 1.3.0.
I'm new to STM32 world. I would very appreciate it if you could also help on configuring debug GUI-INTERFACE.
Best regards,
Robert
2024-07-26 01:04 PM
Hello Pascal,
The problem has been solved after reinstall USB driver for ST-LINK as per UM2468.
I can see the board and COM9 port now.
Thank you for your help.
Best regards,
Robert