Closed fermentedfly closed 1 year ago
Hello @fermentedfly,
Thank you for this contribution. There is no problem from my side. If USE_FULL_ASSERT is defined: This check will be executed. In this case 'dlr_reg' is defined. else This check will be executed, in this case 'expr' is not used, and assert_param returns 0. So, please allow me to close this issue. Thank you again for your comprehension.
Best Regards,
Describe the set-up STM32H7B3 GCC 12.2.0 HAL Driver Git Tag: v1.11.1
Describe the bug stm32h7xx_hal_ospi.c does not compile when the
assert_param
macro actually evaluatesexpr
The offending lines are stm32h7xx_hal_ospi.c:1654 & 1732
assert_param(IS_OSPI_STATUS_BYTES_SIZE(dlr_reg+1U));
-> variabledlr_reg
does not existHow To Reproduce
stm32h7xx_hal_conf.h Enable OSPI
#define HAL_OSPI_MODULE_ENABLED
Set a customassert_param
macro, e.g.