Skip to main content
Associate II
Question

assert_param(expr) defined in two files?

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?

 

 

This topic has been closed for replies.

2 replies

TDK

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

Here is my ioc file. Thanks