Page 1 of 1

CAN includes missing for F107

Posted: Sun Aug 14, 2016 5:28 pm
by avrhack
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:

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

Re: CAN includes missing for F107

Posted: Fri Aug 26, 2016 10:27 am
by Giovanni
Hi,

Fixed in 16.1.6 as bug #772.

Giovanni