CAN includes missing for F107
Posted: Sun Aug 14, 2016 5:28 pm
The platform_f105_f107.mk file is missing the include section for the CAN drivers, resulting in a failure to find can_lld.h when compiling for the F107 using CAN. The include is correct in the platform.mk file that covers the others in the F1xxx series. Both files are in os/hal/ports/STM32/STM32F1xx
The line that needs to be added to platform_f105_f107.mk is shown in the diff/patch below:
This is on GCC / 16.1.5
The line that needs to be added to platform_f105_f107.mk is shown in the diff/patch below:
Code: Select all
diff --git a/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk b/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
index 38fec98..1b84d99 100644
--- a/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
+++ b/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
@@ -86,6 +86,7 @@ endif
# Required include directories
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
$(CHIBIOS)/os/hal/ports/STM32/STM32F1xx \
+ $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1 \
$(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1 \
$(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1 \
$(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1 \
This is on GCC / 16.1.5