cancel
Showing results for 
Search instead for 
Did you mean: 

fatal error: usbpd_ADC_SNK.h: No such file or directory

Robert7
Associate II

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,

RobertNew Project.pngSoftware_Packs_Componment.JPGUCPD1.JPGdebug_err1.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
PPAIL.1
ST Employee

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.

PPAIL1_1-1721995109773.png

 

So, to build a sink application with this board:

- Select the Sink application and the TCPP0203 board part in the software pack selection

PPAIL1_0-1721994972421.png

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

PPAIL1_2-1721995398077.png

- And adapt the parameter settings tab values to the board

PPAIL1_3-1721995471834.png

Please find attached my .ioc for this case in reference.

Best regards

Pascal

 

 

View solution in original post

3 REPLIES 3
PPAIL.1
ST Employee

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.

PPAIL1_1-1721995109773.png

 

So, to build a sink application with this board:

- Select the Sink application and the TCPP0203 board part in the software pack selection

PPAIL1_0-1721994972421.png

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

PPAIL1_2-1721995398077.png

- And adapt the parameter settings tab values to the board

PPAIL1_3-1721995471834.png

Please find attached my .ioc for this case in reference.

Best regards

Pascal

 

 

Robert7
Associate II

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

 

image.pngimage.png

Robert7
Associate II

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,

Robertimage.png