Unable to build with USBPD
Hello! I am trying to build a simple project on STM32G431KBTx featuring USB PD.
I am using STM32CubeMX (latest version), all libraries, etc. are also of latest revisions. I've setup USB PD parameters via GUI, and generated code for Makefile.
When I call Make, I get these errors:
/lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: build/main.o: in function `main':
~/other/Core/Src/main.c:149: undefined reference to `USBPD_DPM_Run'
/lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: build/stm32g4xx_it.o: in function `SysTick_Handler':
~/workspace/other/Core/Src/stm32g4xx_it.c:192: undefined reference to `USBPD_DPM_TimerCounter'
/lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: build/usbpd.o: in function `MX_USBPD_Init':
~/other/USBPD/App/usbpd.c:44: undefined reference to `USBPD_DPM_InitCore'
/lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: ~/workspace/other/USBPD/App/usbpd.c:58: undefined reference to `USBPD_DPM_InitOS'
I haven't altered the generated code at all. I've tried downgrading the libraries, altering parameters, nothing helps...
I am attaching the project file.
