Return value type error in ux_dcd_stm32.h
Neilh93 opened this issue · comments
Neilh93 commented
While working on a project, i have ran into the following error when building the STMicroelectronics package via STCubeMX.
Error[Pe120]: return value type ("void *") does not match the function type ("UX_DCD_STM32_ED_STRUCT *") ..\Middlewares\ST\usbx\common\usbx_stm32_device_controllers\ux_dcd_stm32.h, Line 142
The Fix for which is for me to cast the following: return(struct UX_DCD_STM32_ED_STRUCT *)(UX_NULL);
Mohamed AYED commented
Neilh93 commented
Hi Mohamed,
IDE: IAR embedded workbench
IDE version: 9.20.4
MCU: STM32H753XI
MCU CFG: STMCubeMx
Version: 6.5.0
SW Pack version: STMicroelectronics.X-CUBE-AZRTOS-H7.2.1.0
THREADX version: 6.1.10
USBX version: 6.1.10
…On Thu 2 Jun 2022, 14:19 AYEDMSTM, ***@***.***> wrote:
Hi @Neilh93 <https://github.com/Neilh93>
Could you send me more info: IDE, IDE version, pack version ?
regards,
Mohamed
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNXZKR4R2FM4TJNL47RH4DVNCYFFANCNFSM5XJ2NBOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>