Skip to main content
Associate II
October 17, 2025
Question

assert_param(expr) defined in two files?

  • October 17, 2025
  • 1 reply
  • 256 views

I have a project for STM32F777 generated by STM32CubeMX 6.15.0.

The macro definition of #define assert_param(expr) exists in 2 include files - 

stm32f7xx_hal_conf.h

and 

stm32_assert.h

Both files are included on different levels of the project. Is there a reason to have two indentical definitions in the code?

 

 

1 reply

TDK
Super User
October 17, 2025

On a new project, I can not duplicate this issue. Can you include your IOC file?

 

Could be that LL needs the definition but due to architecture reasons it doesn't want to include HAL files.

"If you feel a post has answered your question, please click ""Accept as Solution""."
CecoAuthor
Associate II
October 20, 2025

Here is my ioc file. Thanks