cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube_FW_F7_V1.12.0 may have a bug

DRuss.5
Associate II

In the file \STM32Cube_FW_F7_V1.12.0\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd.c at line 144 is the instruction:  assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance))

However, I cannot find the macro IS_PCD_ALL_INSTANCE defined anywhere. Note that in STM32Cube_FW_F7_V1.11.0, this macro was defined in \STM32Cube_FW_F7_V1.11.0\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd.h at line 315 and 316.

12 REPLIES 12

I can confirm the bug is in V1.14.0. There is exactly 1 occurrence of "IS_PCD_ALL_INSTANCE" in the entire v1.14 tree, and that's on line 154 of "STM32Cube_FW_F7_V1.14.0/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c":

assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance));

Note that the macro is defined in V1.11 in "../Inc/stm32f7xx_hal_pcd.h"

You'd think some of the static analysis tools, be it LINT, MIRSA, or something else would flag this kind of nonsense? The sign-off on these releases continues to be sloppy.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..