CAN includes missing for F107 Topic is solved

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

CAN includes missing for F107  Topic is solved

Postby avrhack » 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:

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: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: CAN includes missing for F107

Postby Giovanni » Fri Aug 26, 2016 10:27 am

Hi,

Fixed in 16.1.6 as bug #772.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 8 guests