STMicroelectronics / stm32-mw-usbpd-core

USB Power Delivery core stack library component for STM32
Other
5 stars 3 forks source link

Build failing when using TCPM with CMSIS RTOS V2 #2

Closed rwardd closed 5 months ago

rwardd commented 8 months ago

Overview

When implementing the middleware into a project using V2 of the CMSIS RTOS, and having the TCPM mode enabled, the build fails, as two of the RTOS message calls are either incorrect or missing parameters.

Details

The first instance is osMessageQueueGet is missing the event parameter, and the second is during the linking stage, when the linker cannot see a reference to osMessagePut, as this function does not exist in the V2 RTOS. I have made the appropriate changes to add the event variable in, and used the correct function macro definition to handle the osMessageQueuePut function calls.

Screenshots

Screenshot from 2024-02-13 09-12-44 Screenshot from 2024-02-13 09-19-34

HFISTM commented 8 months ago

ST Internal Reference: 173696