H7 firmware v1.11.2 conflicting types in stm32h7xx_hal_hcd.c and in stm32h7xx_ll_usb.c
I upgraded from v1.11.1 to v1.11.2. Now it won't even compile due to bugs in ST code:
../Core/Src/USB/stm32h7xx_hal_hcd.c:1070:18: error: conflicting types for 'HAL_HCD_GetState'; have 'HCD_StateTypeDef(HCD_HandleTypeDef *)'
../Core/Src/USB/stm32h7xx_hal_hcd.c:1089:21: error: conflicting types for 'HAL_HCD_HC_GetURBState'; have 'HCD_URBStateTypeDef(HCD_HandleTypeDef *, uint8_t)' {aka 'USB_URBStateTypeDef(HCD_HandleTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_hal_hcd.c:1102:10: error: conflicting types for 'HAL_HCD_HC_GetXferCount'; have 'uint32_t(HCD_HandleTypeDef *, uint8_t)' {aka 'long unsigned int(HCD_HandleTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_hal_hcd.c:1124:21: error: conflicting types for 'HAL_HCD_HC_GetState'; have 'HCD_HCStateTypeDef(HCD_HandleTypeDef *, uint8_t)' {aka 'USB_HCStateTypeDef(HCD_HandleTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:551:19: error: conflicting types for 'USB_SetDevSpeed'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:567:9: error: conflicting types for 'USB_GetDevSpeed'; have 'uint8_t(USB_OTG_GlobalTypeDef *)' {aka 'unsigned char(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:596:19: error: conflicting types for 'USB_ActivateEndpoint'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:634:19: error: conflicting types for 'USB_ActivateDedicatedEndpoint'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:673:19: error: conflicting types for 'USB_DeactivateEndpoint'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:720:19: error: conflicting types for 'USB_DeactivateDedicatedEndpoint'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:934:19: error: conflicting types for 'USB_EPStopXfer'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:998:19: error: conflicting types for 'USB_WritePacket'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t *, uint8_t, uint16_t, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char *, unsigned char, short unsigned int, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1029:7: error: conflicting types for 'USB_ReadPacket'; have 'void *(USB_OTG_GlobalTypeDef *, uint8_t *, uint16_t)' {aka 'void *(USB_OTG_GlobalTypeDef *, unsigned char *, short unsigned int)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1071:19: error: conflicting types for 'USB_EPSetStall'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1102:19: error: conflicting types for 'USB_EPClearStall'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_OTG_EPTypeDef *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, USB_EPTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1172:19: error: conflicting types for 'USB_SetDevAddress'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1187:19: error: conflicting types for 'USB_DevConnect'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'
../Core/Src/USB/stm32h7xx_ll_usb.c:1204:19: error: conflicting types for 'USB_DevDisconnect'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'
../Core/Src/USB/stm32h7xx_ll_usb.c:1221:10: error: conflicting types for 'USB_ReadInterrupts'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1237:10: error: conflicting types for 'USB_ReadChInterrupts'; have 'uint32_t(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1253:10: error: conflicting types for 'USB_ReadDevAllOutEpInterrupt'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1269:10: error: conflicting types for 'USB_ReadDevAllInEpInterrupt'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1287:10: error: conflicting types for 'USB_ReadDevOutEPInterrupt'; have 'uint32_t(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1305:10: error: conflicting types for 'USB_ReadDevInEPInterrupt'; have 'uint32_t(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1339:10: error: conflicting types for 'USB_GetMode'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1349:19: error: conflicting types for 'USB_ActivateSetup'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'
../Core/Src/USB/stm32h7xx_ll_usb.c:1371:19: error: conflicting types for 'USB_EP0_OutStart'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t, uint8_t *)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char, unsigned char *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1542:19: error: conflicting types for 'USB_InitFSLSPClkSel'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1572:19: error: conflicting types for 'USB_ResetPort'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'
../Core/Src/USB/stm32h7xx_ll_usb.c:1638:19: error: conflicting types for 'USB_DriveVbus'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1668:10: error: conflicting types for 'USB_GetHostSpeed'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1682:10: error: conflicting types for 'USB_GetCurrentFrame'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1979:10: error: conflicting types for 'USB_HC_ReadInterrupt'; have 'uint32_t(USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(USB_OTG_GlobalTypeDef *)'}
../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usb.h:548:19: note: previous declaration of 'USB_HC_ReadInterrupt' with type 'uint32_t(const USB_OTG_GlobalTypeDef *)' {aka 'long unsigned int(const USB_OTG_GlobalTypeDef *)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:1993:19: error: conflicting types for 'USB_HC_Halt'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usb.h:549:19: note: previous declaration of 'USB_HC_Halt' with type 'HAL_StatusTypeDef(const USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(const USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:2068:19: error: conflicting types for 'USB_DoPing'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *, unsigned char)'}
../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usb.h:550:19: note: previous declaration of 'USB_DoPing' with type 'HAL_StatusTypeDef(const USB_OTG_GlobalTypeDef *, uint8_t)' {aka 'HAL_StatusTypeDef(const USB_OTG_GlobalTypeDef *, unsigned char)'}
../Core/Src/USB/stm32h7xx_ll_usb.c:2157:19: error: conflicting types for 'USB_ActivateRemoteWakeup'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'
../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_ll_usb.h:552:19: note: previous declaration of 'USB_ActivateRemoteWakeup' with type 'HAL_StatusTypeDef(const USB_OTG_GlobalTypeDef *)'
../Core/Src/USB/stm32h7xx_ll_usb.c:2175:19: error: conflicting types for 'USB_DeActivateRemoteWakeup'; have 'HAL_StatusTypeDef(USB_OTG_GlobalTypeDef *)'I looked at the code for version v1.11.3 on github and it looks like it is fixed, but that version hasn't been released yet. So when can we expect a fix?


