Skip to main content
csotiriou
Associate
December 9, 2020
Question

In the HAL files why does #if defined(CAN1) exist and why is it not defined by default if I enable CAN1.

Using STM32CubeIDE.

Also when defined by user the autocomplete does not work on the IDE for those functions

This topic has been closed for replies.

2 replies

TDK
December 9, 2020

Works for me on a new project in CubeMX.

If the symbol isn't defined, makes sense that autocomplete would not find it.

"If you feel a post has answered your question, please click ""Accept as Solution""."
csotiriou
csotiriouAuthor
Associate
December 9, 2020

Even after I define CAN1 (and the IDE shows them as not gray (active)) they still don't show in the autocomplete. The project compiles even without the define.