Skip to main content
��Mot
Associate
July 22, 2019
Solved

STM32F072 + X-CUBE-USB-PD

  • July 22, 2019
  • 4 replies
  • 1418 views

Dear ST,

We want to develop device with Your IC STUSB1602. So I downloaded X-CUBE-USB-PD pack to run example application on STM32F072 (I have this nucleo board with expansion board MB1303). But I have a problem with compiling software in SW4STM32: after importing projet I get error:

Building file: D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/src/usbpd_stusb16xx_hw_if.c
Invoking: MCU GCC Compiler
D:\sw4stm32_workspace\X-CUBE-USB-PD-master\STM32CubeExpansion_USBPD_F0\Projects\STM32F072RB-Nucleo\Applications\USB_PD\MB1303_DRP_RTOS\SW4STM32\STM32F072RB-Nucleo_MB1303_DRP_RTOS\Debug
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -DSTM32F072xB -DUSE_HAL_DRIVER -DUSE_STM32F0XX_NUCLEO -D_RTOS -DUSBPD_LED_SERVER '-DUSBPD_PORT_COUNT=1' -D_DRP -D_SNK -DMB1303 -DUSE_FULL_LL_DRIVER -DUSBPD_STUSB1602 -DCONF_NORMAL -DUSBPDCORE_LIB_PD2_CONFIG_1 -D_TRACE_NA -D_ERROR_RECOVERY -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Projects/STM32F072RB-Nucleo/Applications/USB_PD/MB1303_DRP_RTOS/Inc" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/CMSIS/Device/ST/STM32F0xx/Include" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/STM32F0xx_HAL_Driver/Inc" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/BSP/STM32F0xx-Nucleo" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/BSP/P-NUCLEO-USB002" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/CMSIS/Include" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Drivers/BSP/Components/STUSB1602" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM0" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/Third_Party/FreeRTOS/Source/include" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Core/inc" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/inc" -I"D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Utilities/LED_SERVER" -Os -g3 -Wall -fmessage-length=0 -Wno-strict-aliasing -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF"Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.d" -MT"Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.o" -o "Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.o" "D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/src/usbpd_stusb16xx_hw_if.c"
D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/src/usbpd_stusb16xx_hw_if.c:2367:1: fatal error: opening dependency file Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.d: No such file or directory
 }
 ^
compilation terminated.
make: *** [Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.o] Error 1
Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/subdir.mk:76: recipe for target 'Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/usbpd_stusb16xx_hw_if.o' failed

Can You help me with this error?

Best regards

This topic has been closed for replies.
Best answer by Yohann M.

Hello

Folder path too long? can you try to copy workspace directly on D:/ST/?

Yohann

4 replies

Pavel A.
July 22, 2019

Are you out of space on D:?

Is this directory writable?

D:/sw4stm32_workspace/X-CUBE-USB-PD-master/STM32CubeExpansion_USBPD_F0/Middlewares/ST/STM32_USBPD_Library/Devices/STUSB1602/

-- pa

��Mot
��MotAuthor
Associate
July 22, 2019

On D is almost 900GB free space.

Yes, this directory is writtable. I tried also to run sw4stm32 as admin, but problem is the same.

Yohann M.
Yohann M.Best answer
ST Employee
August 12, 2019

Hello

Folder path too long? can you try to copy workspace directly on D:/ST/?

Yohann

DLuki
Visitor II
October 3, 2019

Same problem, this worked for me.