Hello @Sodag.1.
Your ioc file is good. The only difference with AN5418 is that you used CMSIS V2 instead of V1.
The fact that it doesn't work with V2 is due to a bug on our side, and we are raising a ticket to fix it.
Meanwhile, you can apply the fix yourself directly by replacing theses few lines of code in the file gui_os_port.h, under Utilities\GUI_INTERFACE in the firmware package (wich can be found by default in C:\Users\<YOUR USER>\STM32Cube\Repository).
/**
* @brief macro definition used to read a queue message
*/
#if defined(USBPD_THREADX)
#define GUIOS_GETMESSAGE_QUEUE(_ID_, _TIME_,_VALUE_) \
do { \
tx_queue_receive(&(_ID_), (void*)&(_VALUE_), (_TIME_)); \
} while(0)
#else
#if (osCMSIS < 0x20000U)
#define GUIOS_GETMESSAGE_QUEUE(_ID_, _TIME_,_VALUE_) \
do { \
osEvent evt = osMessageGet((_ID_),(_TIME_)); \
(_VALUE_) = evt.value.v; \
} while(0);
#else
#define GUIOS_GETMESSAGE_QUEUE(_ID_, _TIME_,_VALUE_) do { \
(void)osMessageQueueGet((_ID_),&(_VALUE_),NULL,(_TIME_)); \
} while(0)
#endif /* (osCMSIS < 0x20000U) */
#endif /* USBPD_THREADX */
You could also use CMSIS V1 if you don't need the V2 functionalities.
Thank you for your help on this bug, it will be taken into account in the next release.
Best regards