CAN includes missing for F107 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

CAN includes missing for F107

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: CAN includes missing for F107

Post by Giovanni »

Hi,

Fixed in 16.1.6 as bug #772.

Giovanni
Post Reply