Skip to content

Commit 6079066

Browse files
youssefz24erwango
authored andcommitted
stm32mp2xx_hal_conf.h: remove use_full_assert
Remove the use of full assert in stm32mp2xx_hal_conf.h. As done with all other STM32 HAL drivers, this prevents build errors when compiling STM32Cube-based code in Zephyr and allows successful compilation even if assertion checks are not implemented, as the code still functions correctly without them. Signed-off-by: Youssef Zini <[email protected]>
1 parent 78d76b3 commit 6079066

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

stm32cube/stm32mp2xx/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ Patch List:
4747
* HAL LVDS module disabled
4848
- Disabled HAL_LVDS_MODULE_ENABLED as LVDS HAL is not available yet
4949

50+
* USE_FULL_ASSERT disabled
51+
- Disabled the USE_FULL_ASSERT macro to prevent build errors when compiling
52+
STM32Cube-based code in Zephyr. This allows successful compilation even if
53+
assertion checks are not implemented, as the code still functions
54+
correctly without them.
55+
5056
See release_note.html from STM32Cube

stm32cube/stm32mp2xx/drivers/include/stm32mp2xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ in voltage and temperature. */
241241
* @brief Uncomment the line below to expanse the "assert_param" macro in the
242242
* HAL drivers code
243243
*/
244-
#define USE_FULL_ASSERT 1
244+
/* #define USE_FULL_ASSERT 1 */
245245

246246
/* Includes ------------------------------------------------------------------*/
247247
/**

0 commit comments

Comments
 (0)